From df565bca1c250984f238ed428480199953ac6c30 Mon Sep 17 00:00:00 2001 From: Renaud Boyer Date: Mon, 7 Dec 2020 10:38:19 +0100 Subject: [PATCH] fix filter_by --- cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.py b/cron.py index b1509620..fc54e957 100644 --- a/cron.py +++ b/cron.py @@ -76,7 +76,7 @@ def delete_refused_emails(): def notify_premium_end(): """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 ( arrow.now().shift(days=3).date() > sub.next_bill_date