From de4b7c505f594a66e4004bf898247b7dd2bca676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Revuelta?= <46089290+rv0lt@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:51:57 +0200 Subject: [PATCH] Update dds_web/api/project.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ina Odén Österbo <35953392+i-oden@users.noreply.github.com> --- dds_web/api/project.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dds_web/api/project.py b/dds_web/api/project.py index 7132ccd2d..3ff013968 100644 --- a/dds_web/api/project.py +++ b/dds_web/api/project.py @@ -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