mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make sure bulk flag changes sync
https://anki.tenderapp.com/discussions/ankidesktop/31774-flag-syncing-bug
This commit is contained in:
parent
867e4b9f94
commit
cf25b3c053
1 changed files with 2 additions and 2 deletions
|
@ -926,5 +926,5 @@ and type = 0""", intTime(), self.usn())
|
||||||
|
|
||||||
def setUserFlag(self, flag, cids):
|
def setUserFlag(self, flag, cids):
|
||||||
assert 0 <= flag <= 7
|
assert 0 <= flag <= 7
|
||||||
self.db.execute("update cards set flags = (flags & ~?) | ? where id in %s" %
|
self.db.execute("update cards set flags = (flags & ~?) | ?, usn=?, mod=? where id in %s" %
|
||||||
ids2str(cids), 0b111, flag)
|
ids2str(cids), 0b111, flag, self._usn, intTime())
|
||||||
|
|
Loading…
Reference in a new issue