mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix open online bug, status bug
This commit is contained in:
parent
2ad2c0bf5c
commit
182610b898
2 changed files with 4 additions and 2 deletions
|
@ -1448,7 +1448,9 @@ day = :d""", d=yesterday)
|
||||||
self.deck.s.flush()
|
self.deck.s.flush()
|
||||||
self.deck.s.commit()
|
self.deck.s.commit()
|
||||||
if self.loadAfterSync == 2:
|
if self.loadAfterSync == 2:
|
||||||
# special case for open online: mark temp deck as in-memory
|
# ugly hack for open online: mark temp deck as in-memory
|
||||||
|
self.deck.tmpMediaDir = re.sub(
|
||||||
|
"(?i)\.(anki)$", ".media", self.deck.path)
|
||||||
self.deck.path = None
|
self.deck.path = None
|
||||||
self.deck.flushMod()
|
self.deck.flushMod()
|
||||||
elif not self.hideWelcome:
|
elif not self.hideWelcome:
|
||||||
|
|
|
@ -231,7 +231,7 @@ You should aim to answer each question within<br>
|
||||||
return
|
return
|
||||||
if not self.timer:
|
if not self.timer:
|
||||||
return
|
return
|
||||||
if self.main.state in ("showQuestion", "showAnswer"):
|
if self.main.deck and self.main.state in ("showQuestion", "showAnswer"):
|
||||||
if self.main.currentCard:
|
if self.main.currentCard:
|
||||||
if self.main.deck.sessionStartTime:
|
if self.main.deck.sessionStartTime:
|
||||||
t = time.time() - self.main.deck.sessionStartTime
|
t = time.time() - self.main.deck.sessionStartTime
|
||||||
|
|
Loading…
Reference in a new issue