by Shish2k · 10y ago · 0 comments
Eg, spot the error:
_weekend_days = [SATURDAY, SUNDAY]
date.is_weekend = date.day in _weekend_days
Hint: https://en.wikipedia.org/wiki/Workweek_and_weekend#Around_th...(TIL one country doesn't even have consecutive weekend days)
pendulum.set_weekend_days([pendulum.SUNDAY])