This commit is contained in:
Aevann1 2021-10-27 22:40:05 +02:00
parent 5d2f5a037d
commit 4a2c67ab2d
3 changed files with 9 additions and 5 deletions

View file

@ -415,7 +415,8 @@ def api_comment(v):
g.db.add(c2)
longpostbot = g.db.query(User).options(lazyload('*')).filter_by(id = LONGPOSTBOT_ACCOUNT).first().comment_count += 1
longpostbot = g.db.query(User).options(lazyload('*')).filter_by(id = LONGPOSTBOT_ACCOUNT).first()
longpostbot.comment_count += 1
g.db.add(longpostbot)
g.db.flush()
@ -501,7 +502,8 @@ def api_comment(v):
g.db.add(c4)
zozbot = g.db.query(User).options(lazyload('*')).filter_by(id = ZOZBOT_ACCOUNT).first().comment_count += 3
zozbot = g.db.query(User).options(lazyload('*')).filter_by(id = ZOZBOT_ACCOUNT).first()
zozbot.comment_count += 3
g.db.add(zozbot)
g.db.flush()