forked from rDrama/rDrama
use flush intead of commit
parent
a6469085b3
commit
96668282df
|
@ -678,7 +678,7 @@ def submit_post(v, sub=None):
|
||||||
if not p.private:
|
if not p.private:
|
||||||
execute_snappy(p, v)
|
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:
|
if not p.thumburl and p.url and p.domain != SITE:
|
||||||
gevent.spawn(thumbnail_thread, p.url, p.id)
|
gevent.spawn(thumbnail_thread, p.url, p.id)
|
||||||
|
|
Loading…
Reference in New Issue