fdssdf
This commit is contained in:
parent
7c7ea688e2
commit
0af65e85b7
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue