forked from rDrama/rDrama
1
0
Fork 0

use flush intead of commit

master
Aevann 2023-08-20 06:04:25 +03:00
parent a6469085b3
commit 96668282df
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ def submit_post(v, sub=None):
if not p.private:
execute_snappy(p, v)
g.db.commit() #Necessary, do NOT remove
g.db.flush() #Necessary, do NOT remove
if not p.thumburl and p.url and p.domain != SITE:
gevent.spawn(thumbnail_thread, p.url, p.id)