mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
NF: remove _changedGuids
Nothing is ever added to the map. That was a bug detected by lint in ankidroid
This commit is contained in:
parent
d74cc2e9b0
commit
51ba2b5870
1 changed files with 0 additions and 5 deletions
|
@ -82,9 +82,6 @@ class Anki2Importer(Importer):
|
||||||
):
|
):
|
||||||
self._notes[guid] = (id, mod, mid)
|
self._notes[guid] = (id, mod, mid)
|
||||||
existing[id] = True
|
existing[id] = True
|
||||||
# we may need to rewrite the guid if the model schemas don't match,
|
|
||||||
# so we need to keep track of the changes for the card import stage
|
|
||||||
self._changedGuids: Dict[str, bool] = {}
|
|
||||||
# we ignore updates to changed schemas. we need to note the ignored
|
# we ignore updates to changed schemas. we need to note the ignored
|
||||||
# guids, so we avoid importing invalid cards
|
# guids, so we avoid importing invalid cards
|
||||||
self._ignoredGuids: Dict[str, bool] = {}
|
self._ignoredGuids: Dict[str, bool] = {}
|
||||||
|
@ -315,8 +312,6 @@ class Anki2Importer(Importer):
|
||||||
"select f.guid, f.mid, c.* from cards c, notes f " "where c.nid = f.id"
|
"select f.guid, f.mid, c.* from cards c, notes f " "where c.nid = f.id"
|
||||||
):
|
):
|
||||||
guid = card[0]
|
guid = card[0]
|
||||||
if guid in self._changedGuids:
|
|
||||||
guid = self._changedGuids[guid]
|
|
||||||
if guid in self._ignoredGuids:
|
if guid in self._ignoredGuids:
|
||||||
continue
|
continue
|
||||||
# does the card's note exist in dst col?
|
# does the card's note exist in dst col?
|
||||||
|
|
Loading…
Reference in a new issue