diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py index 184cd85a265edc531af136724c6f18573cdf30bb..86bd978de881c0a2be0c3cbfa44b3559683e25c9 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py @@ -1333,9 +1333,9 @@ class SchedulingUnitBlueprintViewSet(LOFARViewSet): operation_description="reset the schedule: marking the unschedulable units as schedulable, and then move all schedulable to a 'parking'-timestamp") @action(methods=['post'], detail=False, url_name="reset_schedule") def reset_schedule(self, request, pk=None): - from lofar.sas.tmss.tmss.tmssapp.subtasks import update_subtasks_start_times_for_scheduling_unit, mark_independent_subtasks_in_task_blueprint_as_schedulable + from lofar.sas.tmss.tmss.tmssapp.subtasks import update_subtasks_start_times_for_scheduling_unit, mark_subtasks_in_task_blueprint_as_schedulable for unit in SchedulingUnitBlueprint.objects.filter(status__value='unschedulable', obsolete_since__isnull=True).all(): - mark_independent_subtasks_in_task_blueprint_as_schedulable(unit) + mark_subtasks_in_task_blueprint_as_schedulable(unit) if strtobool(request.query_params.get('scheduled', 'False')): for unit in SchedulingUnitBlueprint.objects.filter(status__value='scheduled', obsolete_since__isnull=True).all():