remove user.is_cancel()

This commit is contained in:
Son NK 2020-04-19 10:54:15 +02:00
parent f7f1e7f358
commit 2a837f9213
1 changed files with 0 additions and 9 deletions

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: