Skip to content

Commit

Permalink
Merge pull request #3082 from dotkom/timediff-bug
Browse files Browse the repository at this point in the history
fix diff bug
  • Loading branch information
henrikskog authored Mar 7, 2024
2 parents 1e46c76 + f5c4495 commit 307b010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/payment/mommy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def payment_reminder():

for payment in event_payments:
# Number of days until the deadline
deadline_diff = (payment.deadline - today).seconds
deadline_diff = (payment.deadline - today).total_seconds()

if deadline_diff <= 0:
if not_paid(payment):
Expand Down

0 comments on commit 307b010

Please sign in to comment.