Skip to content

Commit

Permalink
Update dds_web/api/project.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ina Odén Österbo <[email protected]>
  • Loading branch information
rv0lt and i-oden authored Oct 23, 2023
1 parent 681b4af commit de4b7c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dds_web/api/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ def patch(self):
db.session.rollback()
raise

return_message = f"{project.public_id} has been given a new deadline"

return_message += (
f". An e-mail notification has{' not ' if not send_email else ' '}been sent."
return_message = (
f"{project.public_id} has been given a new deadline. "
f"An e-mail notification has{' not ' if not send_email else ' '}been sent."
)
else:
# leave it for future new functionality of updating the status
Expand Down

0 comments on commit de4b7c5

Please sign in to comment.