reversed direction of the day count

This commit is contained in:
Anastasia Gradova
2024-06-03 21:38:29 -06:00
parent 140e40ebe0
commit 41f2416216

View File

@@ -235,7 +235,7 @@ def get_service_statistics_for_specific_days(service_id, start, days=1):
else:
stats = {}
for d in range(days):
new_date = start_date + timedelta(days=d)
new_date = start_date - timedelta(days=d)
key = new_date.strftime("%Y-%m-%d")
stats[key] = statistics.format_statistics(
dao_fetch_stats_for_service_from_day(service_id, new_date)