master
Aevann1 2021-12-17 20:19:29 +02:00
parent f1fb13acf5
commit fb54efa634
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ def notify(v):
print('wtf')
users = g.db.query(User.id).all()
for u in users:
print(u[0])
notif = Notification(comment_id=new_comment.id, user_id=u)
notif = Notification(comment_id=new_comment.id, user_id=u[0])
g.db.add(notif)
g.db.commit()