Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
deploy: Update deploy hours.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Oct 9, 2015
1 parent a4a7dd9 commit d1498e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions harold/plugins/deploy.py
Expand Up @@ -210,13 +210,13 @@ def is_working_hours(self):
date = datetime.date.today()
time = datetime.datetime.now().time()

# never before 9am
# always after 9am
if time < datetime.time(9, 0):
return False

if date.weekday() in (0, 1, 2, 3):
# monday through thursday, 9-5
return time < datetime.time(17, 0)
# monday through thursday, before 4pm
return time < datetime.time(16, 0)
else:
# no work on the weekend
return False
Expand Down

0 comments on commit d1498e7

Please sign in to comment.