use standard timer if no session limit set, update more decks link

This commit is contained in:
Damien Elmes 2009-01-07 18:12:15 +09:00
parent 20982c8b93
commit ef998cdf2e
2 changed files with 3 additions and 2 deletions

View file

@ -13,7 +13,7 @@ appHelpSite="http://ichi2.net/anki/wiki/AnkiWiki"
appIssueTracker="http://code.google.com/p/anki/issues/list"
appForum="http://groups.google.com/group/ankisrs/topics"
appReleaseNotes="http://ichi2.net/anki/download/index.html#changes"
appMoreDecks="http://ichi2.net/anki/wiki/ExtraDecks"
appMoreDecks="http://ichi2.net/anki/wiki/PreMadeDecks"
appDonate="http://ichi2.net/anki/donate.html"
modDir=os.path.dirname(os.path.abspath(__file__))

View file

@ -233,7 +233,8 @@ You should aim to answer each question within<br>
return
if self.main.deck and self.main.state in ("showQuestion", "showAnswer"):
if self.main.currentCard:
if self.main.deck.sessionStartTime:
if (self.main.deck.sessionStartTime and
self.main.deck.sessionTimeLimit):
t = time.time() - self.main.deck.sessionStartTime
t = self.main.deck.sessionTimeLimit - t
else: