From c00fdd6cfb4391d1e0c72b01d3ef5ae84dc0602a Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 10 Feb 2020 21:43:59 +0700 Subject: [PATCH] fix: not sending trial ending for user having lifetime licence --- cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.py b/cron.py index 7962c45b..7468bfeb 100644 --- a/cron.py +++ b/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)