Skip to content

Commit

Permalink
Fix Day Offset (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 authored Nov 27, 2023
1 parent 4837c9c commit 32271e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/processing/wrapped/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

1 comment on commit 32271e5

@vercel
Copy link

@vercel vercel bot commented on 32271e5 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.