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)