This commit is contained in:
Aevann1 2021-10-27 22:38:10 +02:00
parent 2fc0aeb504
commit 5d2f5a037d
3 changed files with 24 additions and 0 deletions

View file

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