mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
get rid of 'deck is empty message'
This commit is contained in:
parent
0d87b6f32d
commit
23379cd600
3 changed files with 5 additions and 1 deletions
|
@ -432,7 +432,7 @@ new cards</a> waiting''') % {
|
||||||
msg = (_("The next card will be shown in <b>%s</b>") %
|
msg = (_("The next card will be shown in <b>%s</b>") %
|
||||||
self.earliestTimeStr())
|
self.earliestTimeStr())
|
||||||
else:
|
else:
|
||||||
msg = _("The deck is empty. Please add some cards.")
|
msg = _("No cards are due.")
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def earliestTime(self):
|
def earliestTime(self):
|
||||||
|
|
|
@ -874,6 +874,7 @@ class HttpSyncServerProxy(SyncServer):
|
||||||
libanki=anki.version,
|
libanki=anki.version,
|
||||||
client=clientVersion,
|
client=clientVersion,
|
||||||
sources=simplejson.dumps(self.sourcesToCheck))
|
sources=simplejson.dumps(self.sourcesToCheck))
|
||||||
|
socket.setdefaulttimeout(None)
|
||||||
if d['status'] != "OK":
|
if d['status'] != "OK":
|
||||||
raise SyncError(type="authFailed", status=d['status'])
|
raise SyncError(type="authFailed", status=d['status'])
|
||||||
self._mediaSupported = d['mediaSupported']
|
self._mediaSupported = d['mediaSupported']
|
||||||
|
|
|
@ -90,6 +90,9 @@ def parseTags(tags):
|
||||||
tags = [tag.strip() for tag in tags if tag.strip()]
|
tags = [tag.strip() for tag in tags if tag.strip()]
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
|
def joinTags(tags):
|
||||||
|
return ", ".join(tags)
|
||||||
|
|
||||||
def findTag(tag, tags):
|
def findTag(tag, tags):
|
||||||
"True if TAG is in TAGS. Ignore case."
|
"True if TAG is in TAGS. Ignore case."
|
||||||
return tag.lower() in [t.lower() for t in tags]
|
return tag.lower() in [t.lower() for t in tags]
|
||||||
|
|
Loading…
Reference in a new issue