always commit or rollback

pull/200/head
Aevann 2023-09-09 00:04:39 +03:00
parent a912c482e4
commit bcab0ef9c3
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()