mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
fix filter_by
This commit is contained in:
parent
7838ff3224
commit
df565bca1c
1 changed files with 1 additions and 1 deletions
2
cron.py
2
cron.py
|
@ -76,7 +76,7 @@ def delete_refused_emails():
|
||||||
|
|
||||||
def notify_premium_end():
|
def notify_premium_end():
|
||||||
"""sent to user who has canceled their subscription and who has their subscription ending soon"""
|
"""sent to user who has canceled their subscription and who has their subscription ending soon"""
|
||||||
for sub in Subscription.query.filter(cancelled=True).all():
|
for sub in Subscription.query.filter_by(cancelled=True).all():
|
||||||
if (
|
if (
|
||||||
arrow.now().shift(days=3).date()
|
arrow.now().shift(days=3).date()
|
||||||
> sub.next_bill_date
|
> sub.next_bill_date
|
||||||
|
|
Loading…
Reference in a new issue