remove user.is_cancel()

This commit is contained in:
Son NK 2020-04-19 10:54:15 +02:00
parent f7f1e7f358
commit 2a837f9213

View file

@ -262,15 +262,6 @@ class User(db.Model, ModelMixin, UserMixin):
return True
def is_cancel(self) -> bool:
"""User has canceled their subscription but the subscription is still active,
i.e. next_bill_date > now"""
sub: Subscription = self.get_subscription()
if sub and sub.cancelled:
return True
return False
def is_premium(self) -> bool:
"""
user is premium if they: