dont generate unneeded notifs

pull/222/head
Aevann 2024-02-06 20:36:07 +02:00
parent c3ffbcdd9e
commit 51c481f848
1 changed files with 0 additions and 8 deletions

View File

@ -82,14 +82,6 @@ def request_api_keys(v):
new_comment.top_comment_id = new_comment.id
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['APPS_MODERATION'])]
for admin_id in admin_ids:
notif = Notification(comment_id=new_comment.id, user_id=admin_id)
g.db.add(notif)
push_notif(admin_ids, 'New notification', body, f'{SITE_FULL}/admin/apps')
return {"message": "API keys requested successfully!"}