From e3f81bc4e42d2c0226cc5375807a94ab1b9b18fc Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 27 Sep 2021 15:51:09 +0200 Subject: [PATCH] fix subscription reminder sent to lifetime user --- cron.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cron.py b/cron.py index 0a594d14..9bbef57d 100644 --- a/cron.py +++ b/cron.py @@ -123,6 +123,10 @@ def notify_premium_end(): >= arrow.now().shift(days=2).date() ): user = sub.user + + if user.lifetime: + continue + LOG.d(f"Send subscription ending soon email to user {user}") send_email(