fix subscription reminder sent to lifetime user
This commit is contained in:
parent
339d611e63
commit
e3f81bc4e4
4
cron.py
4
cron.py
|
@ -123,6 +123,10 @@ def notify_premium_end():
|
||||||
>= arrow.now().shift(days=2).date()
|
>= arrow.now().shift(days=2).date()
|
||||||
):
|
):
|
||||||
user = sub.user
|
user = sub.user
|
||||||
|
|
||||||
|
if user.lifetime:
|
||||||
|
continue
|
||||||
|
|
||||||
LOG.d(f"Send subscription ending soon email to user {user}")
|
LOG.d(f"Send subscription ending soon email to user {user}")
|
||||||
|
|
||||||
send_email(
|
send_email(
|
||||||
|
|
Loading…
Reference in a new issue