Skip to content

Commit

Permalink
Neaten up the logic to make it less fragile
Browse files Browse the repository at this point in the history
  • Loading branch information
exonian committed May 21, 2020
1 parent 7d3021d commit 43ba5b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cla_common/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.1"
__version__ = "0.3.2"
8 changes: 4 additions & 4 deletions cla_common/call_centre_availability/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def available(self, dt, ignore_time=False):
if on_day(dt):
if hours is None:
return False
if not ignore_time and dt not in hours:
return False

return True
if ignore_time:
return True
return dt in hours
return False

def can_schedule_callback(self, dt, ignore_time=False):
if in_the_past(dt):
Expand Down

0 comments on commit 43ba5b6

Please sign in to comment.