diff --git a/dds_web/api/project.py b/dds_web/api/project.py index 873c5e661..af42d42fd 100644 --- a/dds_web/api/project.py +++ b/dds_web/api/project.py @@ -209,6 +209,7 @@ def patch(self): raise DDSArgumentError(message="`confirmed` is a boolean value: True or False.") if not confirmed_operation: warning_message = "Operation must be confirmed before proceding." + # When not confirmed, return information about the project project_info = ProjectInfo().get() project_status = self.get() json_returned = { @@ -228,10 +229,10 @@ def patch(self): ) ) + self.set_busy(project=project, busy=True) + # Extend deadline try: - self.set_busy(project=project, busy=True) - new_deadline_in = json_input.get( "new_deadline_in", None ) # if not provided --> is None -> deadline is not updated