fix '<' not supported between instances of 'datetime.date' and 'Arrow'

This commit is contained in:
Son NK 2019-11-17 11:34:07 +01:00
parent c5b65c108b
commit 8cc7ad2225
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def late_payment():
"""check for late payment
"""
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}")