mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
fix: not sending trial ending for user having lifetime licence
This commit is contained in:
parent
6ad395f24f
commit
c00fdd6cfb
1 changed files with 1 additions and 1 deletions
2
cron.py
2
cron.py
|
@ -20,7 +20,7 @@ from server import create_app
|
|||
|
||||
def notify_trial_end():
|
||||
for user in User.query.filter(
|
||||
User.activated == True, User.trial_end.isnot(None)
|
||||
User.activated == True, User.trial_end.isnot(None), User.lifetime == False
|
||||
).all():
|
||||
if arrow.now().shift(days=3) > user.trial_end >= arrow.now().shift(days=2):
|
||||
LOG.d("Send trial end email to user %s", user)
|
||||
|
|
Loading…
Reference in a new issue