Skip to content

Commit

Permalink
🐛 fix weekly timetracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie-Chauvel committed Sep 9, 2021
1 parent e228c28 commit e421e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timetracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def getDaysOfThisWeek() -> Tuple[datetime.datetime, ...]:
theday = datetime.datetime.today()
weekday = theday.isoweekday()
start = theday - datetime.timedelta(days=weekday - 1)
return (start + datetime.timedelta(days=d) for d in range(5))
return tuple((start + datetime.timedelta(days=d) for d in range(5)))


def getDaysOfThisMonth() -> Tuple[datetime.datetime, ...]:
Expand Down

0 comments on commit e421e4d

Please sign in to comment.