Fix error on page load

This commit is contained in:
2026-06-15 19:23:07 -04:00
parent 369c8b872e
commit 06b70f814e

2
app.py
View File

@@ -91,7 +91,7 @@ def generate_report(user_id, begin_date, end_date):
timestamp = parse_iso_datetime(row["ts"])
if timestamp < begin_dt or timestamp > end_dt:
continue
delta = row["ts"] - timestamp
delta = end_dt - timestamp
if row["paid"]:
paid_seconds += delta.total_seconds()
else: