diff --git a/biscuit/apps/chronos/views.py b/biscuit/apps/chronos/views.py index f8920113bb769bf2b6e9bcb5dfee6c533cadf0a1..5909aac4fb9d7b41d8a3b9c90e5fb7e99b2c46aa 100755 --- a/biscuit/apps/chronos/views.py +++ b/biscuit/apps/chronos/views.py @@ -71,7 +71,11 @@ def get_next_weekday(date): """Get the next weekday by a datetime object""" if date.isoweekday() in {6, 7}: - date += datetime.timedelta(days=date.isoweekday() % 4) + if date.isoweekday() == 6: + plus = 2 + else: + plus = 1 + date += datetime.timedelta(days=plus) return date