mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-11 19:04:24 +00:00
Codestyle enhancements
This commit is contained in:
1 parent
1fd7a2e38c
commit
3d99b8770c
10 files changed
+44
-41
No files matched your search
@@ -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