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

@ -904,7 +904,8 @@ def submit_post(v):
g.db.add(c)
snappy = g.db.query(User).options(lazyload('*')).filter_by(id = SNAPPY_ACCOUNT).first().comment_count += 1
snappy = g.db.query(User).options(lazyload('*')).filter_by(id = SNAPPY_ACCOUNT).first()
snappy.comment_count += 1
g.db.add(snappy)
g.db.flush()