Skip to content

Commit

Permalink
Explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marcua committed Jul 2, 2021
1 parent fe5f5e1 commit d4d687f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orchestra/communication/staffing.py
Expand Up @@ -145,6 +145,8 @@ def _get_worker_allowed_hours():
today = timezone.now().date()
today_abbreviation = ['mon', 'tues', 'wed', 'thurs', 'fri', 'sat', 'sun'][
today.weekday()]
# For each Worker, their allowed hours is the smaller of the their
# daily (desired) availability and their max hours per day.
return {
availability.worker.id:
min(
Expand Down

0 comments on commit d4d687f

Please sign in to comment.