set db mod flag if mtime changed by backend
This commit is contained in:
parent
330848abe3
commit
2f1523f82a
@ -195,6 +195,9 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?""",
|
||||
def flush_all_changes(self, mod: Optional[int] = None):
|
||||
self.models.flush()
|
||||
self.decks.flush()
|
||||
# set mod flag if mtime changed by backend
|
||||
if self.db.scalar("select mod from col") != self.mod:
|
||||
self.db.mod = True
|
||||
if self.db.mod:
|
||||
self.flush(mod)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user