diff --git a/common/common/shifts.py b/common/common/shifts.py index 802f51d..82e8922 100644 --- a/common/common/shifts.py +++ b/common/common/shifts.py @@ -87,7 +87,7 @@ def calculate_shift(time, shifts): time -- a datetime.datetime instance shifts -- the output from parse_shifts """ - if time is not None: + if time is None: return '' for shift in shifts['one_off']: