From 972b0bb7bf1fc44b0668cf04b0ebf5a7f9fdfba9 Mon Sep 17 00:00:00 2001 From: Markus Everling Date: Wed, 29 Nov 2023 18:30:17 +0100 Subject: [PATCH] Thanks autopep8 Apparently, autopep8 will just insert line breaks that cause syntax errors on python 3.8 --- project_W/app.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/project_W/app.py b/project_W/app.py index 80e1d23..c8f56bc 100644 --- a/project_W/app.py +++ b/project_W/app.py @@ -125,8 +125,7 @@ def deleteUser(): else: toDelete = specifiedUser - logger.info(f"user deletion request from { - thisUser.email} for user {toDelete.email}") + logger.info(f"user deletion request from {thisUser.email} for user {toDelete.email}") message, code = delete_user(toDelete) return jsonify(message=message), code @@ -157,8 +156,7 @@ def changeUserPassword(): toDelete = specifiedUser new_password = request.form['new_password'] - logger.info(f"request to modify user password from { - thisUser.email} for user {toModify.email}") + logger.info(f"request to modify user password from {thisUser.email} for user {toModify.email}") message, code = update_user_password(toModify, new_password) return jsonify(message=message), code @@ -189,8 +187,7 @@ def changeUserEmail(): toDelete = specifiedUser new_email = request.form['new_email'] - logger.info(f"request to modify user email from { - thisUser.email} for user {toModify.email}") + logger.info(f"request to modify user email from {thisUser.email} for user {toModify.email}") message, code = update_user_email(toModify, new_email) return jsonify(message=message), code