Skip to content

Commit

Permalink
Thanks autopep8
Browse files Browse the repository at this point in the history
Apparently, autopep8 will just insert line breaks that cause syntax errors on python 3.8
  • Loading branch information
MarkusEverling committed Nov 29, 2023
1 parent 1637afb commit 972b0bb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions project_W/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 972b0bb

Please sign in to comment.