Skip to content

Commit

Permalink
unconfirmed returns project info
Browse files Browse the repository at this point in the history
  • Loading branch information
rv0lt committed Oct 16, 2023
1 parent 1d0478c commit 0f0bb1f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dds_web/api/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,15 @@ 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."
return {"warning": warning_message}
project_info = ProjectInfo().get()
project_status = self.get()
json_returned = {
**project_info,
"project_status": project_status,
"warning": warning_message,
"default_unit_days": project.responsible_unit.days_in_expired,
}
return json_returned

# Cannot change project status if project is busy
if project.busy:
Expand Down

0 comments on commit 0f0bb1f

Please sign in to comment.