Skip to content
Snippets Groups Projects
Commit b6409fbf authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-190: check for key 'time.at'

parent c72397bf
No related branches found
No related tags found
1 merge request!252Resolve TMSS-190
...@@ -140,7 +140,7 @@ def get_earliest_possible_start_time(scheduling_unit: models.SchedulingUnitBluep ...@@ -140,7 +140,7 @@ def get_earliest_possible_start_time(scheduling_unit: models.SchedulingUnitBluep
constraints = scheduling_unit.draft.scheduling_constraints_doc constraints = scheduling_unit.draft.scheduling_constraints_doc
try: try:
if has_manual_scheduler_constraint(scheduling_unit): if has_manual_scheduler_constraint(scheduling_unit) and 'at' in constraints['time']:
at = parser.parse(constraints['time']['at'], ignoretz=True) at = parser.parse(constraints['time']['at'], ignoretz=True)
return at return at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment