mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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)
|
csum = checksum(data)
|
||||||
name = meta[i.filename]
|
name = meta[i.filename]
|
||||||
# can we store the file on this system?
|
# can we store the file on this system?
|
||||||
if self.illegal(i.filename):
|
if self.illegal(name):
|
||||||
continue
|
continue
|
||||||
# save file
|
# save file
|
||||||
open(name, "wb").write(data)
|
open(name, "wb").write(data)
|
||||||
|
|
|
@ -461,7 +461,6 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
return delay*60
|
return delay*60
|
||||||
|
|
||||||
def _lrnConf(self, card):
|
def _lrnConf(self, card):
|
||||||
conf = self._cardConf(card)
|
|
||||||
if card.type == 2:
|
if card.type == 2:
|
||||||
return self._lapseConf(card)
|
return self._lapseConf(card)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue