make sure bulk flag changes sync

https://anki.tenderapp.com/discussions/ankidesktop/31774-flag-syncing-bug
This commit is contained in:
Damien Elmes 2019-02-05 13:01:07 +10:00
parent 867e4b9f94
commit cf25b3c053

View file

@ -926,5 +926,5 @@ and type = 0""", intTime(), self.usn())
def setUserFlag(self, flag, cids):
assert 0 <= flag <= 7
self.db.execute("update cards set flags = (flags & ~?) | ? where id in %s" %
ids2str(cids), 0b111, flag)
self.db.execute("update cards set flags = (flags & ~?) | ?, usn=?, mod=? where id in %s" %
ids2str(cids), 0b111, flag, self._usn, intTime())