remove user.is_cancel()
This commit is contained in:
parent
f7f1e7f358
commit
2a837f9213
|
@ -262,15 +262,6 @@ class User(db.Model, ModelMixin, UserMixin):
|
||||||
|
|
||||||
return True
|
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:
|
def is_premium(self) -> bool:
|
||||||
"""
|
"""
|
||||||
user is premium if they:
|
user is premium if they:
|
||||||
|
|
Loading…
Reference in a new issue