mirror of
https://github.com/simple-login/app.git
synced 2025-09-29 18:06:34 +08:00
fix subscription reminder sent to lifetime user
This commit is contained in:
parent
339d611e63
commit
e3f81bc4e4
1 changed files with 4 additions and 0 deletions
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…
Add table
Reference in a new issue