Keep need commit status if commit failed
This commit is contained in:
parent
9aa599f9d2
commit
52ac972332
1 changed files with 3 additions and 2 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue