From 2a837f9213a7c897cb9507fa1f8db33fac17d39e Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sun, 19 Apr 2020 10:54:15 +0200 Subject: [PATCH] remove user.is_cancel() --- app/models.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/models.py b/app/models.py index 05a850ab..2018bd93 100644 --- a/app/models.py +++ b/app/models.py @@ -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: