small fix

This commit is contained in:
Son NK 2020-01-30 15:08:26 +07:00
parent c14a219758
commit c649e3ba09
1 changed files with 4 additions and 1 deletions

View File

@ -162,7 +162,10 @@ class User(db.Model, ModelMixin, UserMixin):
if self.lifetime_or_active_subscription():
return False
return self.trial_end and arrow.now() < self.trial_end
if self.trial_end and arrow.now() < self.trial_end:
return True
return False
def should_upgrade(self):
return not self.lifetime_or_active_subscription()