fix cron job (#1134)

This commit is contained in:
Son Nguyen Kim 2022-07-04 11:05:42 +02:00 committed by GitHub
parent 8799691f99
commit 02b39f98b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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