Keep need commit status if commit failed

This commit is contained in:
shortcutme 2019-03-18 03:33:06 +01:00
parent 9aa599f9d2
commit 52ac972332
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -33,8 +33,9 @@ def dbCommitCheck():
if not db.need_commit: if not db.need_commit:
continue continue
db.commit("Interval") success = db.commit("Interval")
db.need_commit = False if success:
db.need_commit = False
time.sleep(0.1) time.sleep(0.1)
def dbCloseAll(): def dbCloseAll():