From 32271e5515dc1fe4afc19d15a2bf8cd8edbbdbd3 Mon Sep 17 00:00:00 2001 From: Abhijit Gupta Date: Sun, 26 Nov 2023 21:27:44 -0500 Subject: [PATCH] Fix Day Offset (#245) --- backend/src/processing/wrapped/time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/processing/wrapped/time.py b/backend/src/processing/wrapped/time.py index f20ff8b1..c5b8df6a 100644 --- a/backend/src/processing/wrapped/time.py +++ b/backend/src/processing/wrapped/time.py @@ -40,7 +40,7 @@ def get_day_data(data: UserPackage) -> DayData: ) for item in data.contribs.total: - day = datetime.fromisoformat(item.date).weekday() + day = (datetime.fromisoformat(item.date).weekday() + 1) % 7 days[day]["contribs"] += item.stats.contribs_count loc_changed = sum( x.additions + x.deletions for x in item.stats.languages.values()