CHORE: Fixed pep8 test failure
This commit is contained in:
parent
bbb4ed50fc
commit
d74f26c028
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user