fdssfd
This commit is contained in:
parent
5d2f5a037d
commit
4a2c67ab2d
3 changed files with 9 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue