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:
|
||||
files[f] = 1
|
||||
# update media counts if we're attached to deck
|
||||
if media:
|
||||
for (f, cnt) in files.items():
|
||||
updateMediaCount(deck, f, cnt)
|
||||
# if media:
|
||||
# for (f, cnt) in files.items():
|
||||
# updateMediaCount(deck, f, cnt)
|
||||
self.setModified()
|
||||
|
||||
def setModified(self):
|
||||
|
Loading…
Reference in New Issue
Block a user