mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
updateCardGids()
This commit is contained in:
parent
8c1c729544
commit
6be313bcd3
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ insert or replace into facts values (?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||||
def model(self):
|
def model(self):
|
||||||
return self._model
|
return self._model
|
||||||
|
|
||||||
|
def updateCardGids(self):
|
||||||
|
for c in self.cards():
|
||||||
|
if c.gid != self.gid and not c.template()['gid']:
|
||||||
|
c.gid = self.gid
|
||||||
|
c.flush()
|
||||||
|
|
||||||
# Dict interface
|
# Dict interface
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue