mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-11 08:30:41 +00:00
Codestyle enhancements
This commit is contained in:
@ -8,6 +8,6 @@ def delete_user(user_id, *args, **kwargs):
|
||||
with kwargs['app'].app_context():
|
||||
user = User.query.get(user_id)
|
||||
if user is None:
|
||||
raise Exception('User {} not found'.format(user_id))
|
||||
raise Exception(f'User {user_id} not found')
|
||||
user.delete()
|
||||
db.session.commit()
|
||||
|
Reference in New Issue
Block a user