Skip to content

Commit

Permalink
Ensures that we try earliest_date with latest_date reaches
Browse files Browse the repository at this point in the history
low_percentage
  • Loading branch information
dbosk committed Oct 31, 2022
1 parent 4aea774 commit e0ac0d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nytid/schedules/utils.nw
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,10 @@ elif compute_percentage(earliest_month, latest_month, hours) >= low_percentage:
latest_date = latest_month
elif compute_percentage(earliest_date, latest_month, hours) >= low_percentage:
latest_date = latest_month
elif compute_percentage(earliest_date, latest_date, hours) >= low_percentage:
pass
else:
continue
continue # skip to next TA
@

The [[compute_percentage]] function simply computes the average working time.
Expand Down

0 comments on commit e0ac0d6

Please sign in to comment.