CHORE: Fixed pep8 test failure

This commit is contained in:
Luke Else 2024-02-14 22:14:42 +00:00
parent bbb4ed50fc
commit d74f26c028

View File

@ -68,7 +68,11 @@ def display_update(id: int):
db = UserController() db = UserController()
user = db.read_id(id) user = db.read_id(id)
return render_template('index.html', content="user.html", updating_user=user) return render_template(
'index.html',
content="user.html",
updating_user=user
)
@blueprint.post('/update/<int:id>') @blueprint.post('/update/<int:id>')
@ -100,7 +104,7 @@ def update(id: int):
"warning" "warning"
) )
return redirect(url_for('main.users.display_update', id=id)) return redirect(url_for('main.users.display_update', id=id))
# Invalid role submitted # Invalid role submitted
if user.role not in ROLES: if user.role not in ROLES:
flash( flash(