()
| 28 | |
| 29 | |
| 30 | def dbCommitCheck(): |
| 31 | while 1: |
| 32 | time.sleep(5) |
| 33 | for db in opened_dbs[:]: |
| 34 | if not db.need_commit: |
| 35 | continue |
| 36 | |
| 37 | success = db.commit("Interval") |
| 38 | if success: |
| 39 | db.need_commit = False |
| 40 | time.sleep(0.1) |
| 41 | |
| 42 | |
| 43 | def dbCloseAll(): |