don't update media count when upgrading
fixes https://anki.tenderapp.com/discussions/ankidesktop/2770-error-message-while-importing-anki-1-deck-to-anki-2
This commit is contained in:
parent
0bef1d8530
commit
20e4085c30
@ -122,9 +122,9 @@ class Card(object):
|
|||||||
else:
|
else:
|
||||||
files[f] = 1
|
files[f] = 1
|
||||||
# update media counts if we're attached to deck
|
# update media counts if we're attached to deck
|
||||||
if media:
|
# if media:
|
||||||
for (f, cnt) in files.items():
|
# for (f, cnt) in files.items():
|
||||||
updateMediaCount(deck, f, cnt)
|
# updateMediaCount(deck, f, cnt)
|
||||||
self.setModified()
|
self.setModified()
|
||||||
|
|
||||||
def setModified(self):
|
def setModified(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user