forked from MarseyWorld/MarseyWorld
always commit or rollback
parent
a912c482e4
commit
bcab0ef9c3
|
@ -32,8 +32,8 @@ def _mark_comment_as_read(cid, vid):
|
|||
if notif and not notif.read:
|
||||
notif.read = True
|
||||
db.add(notif)
|
||||
db.commit()
|
||||
|
||||
db.commit()
|
||||
db.close()
|
||||
stdout.flush()
|
||||
|
||||
|
|
|
@ -356,8 +356,8 @@ def thumbnail_thread(fetch_url, pid):
|
|||
if thumburl:
|
||||
p.thumburl = thumburl
|
||||
db.add(p)
|
||||
db.commit()
|
||||
|
||||
db.commit()
|
||||
db.close()
|
||||
stdout.flush()
|
||||
|
||||
|
|
Loading…
Reference in New Issue