From 02b39f98b750f87ed0748198fc1f801ee9e8d202 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 4 Jul 2022 11:05:42 +0200 Subject: [PATCH] fix cron job (#1134) --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 686843ce..867686d9 100644 --- a/app/models.py +++ b/app/models.py @@ -642,7 +642,7 @@ class User(Base, ModelMixin, UserMixin, PasswordOracle): if sub is None: return False - if isinstance(sub, ManualSubscription) and sub.is_giveaway(): + if isinstance(sub, ManualSubscription) and sub.is_giveaway: return False return True