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
1 changed files with 3 additions and 2 deletions

View File

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