forked from rDrama/rDrama
fix polls not appearing when making comment
parent
9f09ec82a9
commit
57d7342802
|
@ -412,6 +412,8 @@ def comment(v):
|
||||||
).one_or_none()
|
).one_or_none()
|
||||||
if n: g.db.delete(n)
|
if n: g.db.delete(n)
|
||||||
|
|
||||||
|
g.db.flush()
|
||||||
|
|
||||||
if c.parent_post:
|
if c.parent_post:
|
||||||
for sort in COMMENT_SORTS:
|
for sort in COMMENT_SORTS:
|
||||||
cache.delete(f'post_{c.parent_post}_{sort}')
|
cache.delete(f'post_{c.parent_post}_{sort}')
|
||||||
|
|
Loading…
Reference in New Issue