mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
fix '<' not supported between instances of 'datetime.date' and 'Arrow'
This commit is contained in:
parent
c5b65c108b
commit
8cc7ad2225
2
cron.py
2
cron.py
@ -9,7 +9,7 @@ def late_payment():
|
|||||||
"""check for late payment
|
"""check for late payment
|
||||||
"""
|
"""
|
||||||
for sub in Subscription.query.all():
|
for sub in Subscription.query.all():
|
||||||
if (not sub.cancelled) and sub.next_bill_date < arrow.now():
|
if (not sub.cancelled) and sub.next_bill_date < arrow.now().date():
|
||||||
LOG.error(f"user {sub.user.email} has late payment. {sub}")
|
LOG.error(f"user {sub.user.email} has late payment. {sub}")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user