mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix illegal check thanks to kostas
This commit is contained in:
parent
7553573304
commit
5c59f6a558
2 changed files with 1 additions and 2 deletions
|
@ -247,7 +247,7 @@ If the same name exists, compare checksums."""
|
|||
csum = checksum(data)
|
||||
name = meta[i.filename]
|
||||
# can we store the file on this system?
|
||||
if self.illegal(i.filename):
|
||||
if self.illegal(name):
|
||||
continue
|
||||
# save file
|
||||
open(name, "wb").write(data)
|
||||
|
|
|
@ -461,7 +461,6 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
|||
return delay*60
|
||||
|
||||
def _lrnConf(self, card):
|
||||
conf = self._cardConf(card)
|
||||
if card.type == 2:
|
||||
return self._lapseConf(card)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue