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()
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>')
@ -100,7 +104,7 @@ def update(id: int):
"warning"
)
return redirect(url_for('main.users.display_update', id=id))
# Invalid role submitted
if user.role not in ROLES:
flash(