Skip to content

Commit

Permalink
🐛 Fix empty days off
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie-Chauvel committed Sep 9, 2021
1 parent eab2f51 commit e228c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion timetracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def day_with_week(
day,
day.strftime("%Y-%m-%d"),
day.strftime("%Y-%m-%d") in days_contributed,
all(day >= off_day["start"] and day <= off_day["end"] for off_day in off_days),
len(off_days) > 0
and all(
day >= off_day["start"] and day <= off_day["end"] for off_day in off_days
),
)


Expand Down

0 comments on commit e228c28

Please sign in to comment.