mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
remove obsolete code in update check
we weren't sending deck info anyway as the decks are loaded later in the startup process and have been for a long time
This commit is contained in:
parent
64f474f25c
commit
d111118132
1 changed files with 0 additions and 15 deletions
|
|
@ -11,30 +11,15 @@ import simplejson, platform
|
||||||
baseUrl = "http://anki.ichi2.net/update/"
|
baseUrl = "http://anki.ichi2.net/update/"
|
||||||
#baseUrl = "http://localhost:8001/update/"
|
#baseUrl = "http://localhost:8001/update/"
|
||||||
|
|
||||||
# when requesting latest version number, gather their version, deck size and
|
|
||||||
# average retention ratio for future development
|
|
||||||
class LatestVersionFinder(QThread):
|
class LatestVersionFinder(QThread):
|
||||||
|
|
||||||
def __init__(self, main):
|
def __init__(self, main):
|
||||||
QThread.__init__(self)
|
QThread.__init__(self)
|
||||||
self.main = main
|
self.main = main
|
||||||
self.config = main.config
|
self.config = main.config
|
||||||
# calculate stats before we start a new thread
|
|
||||||
plat=sys.platform
|
plat=sys.platform
|
||||||
pver=platform.platform()
|
pver=platform.platform()
|
||||||
if self.main.deck != None:
|
|
||||||
deckSize = self.main.deck.cardCount
|
|
||||||
stats = self.main.deck.getStats()
|
|
||||||
deckRecall = "%0.2f" % stats['gMatureYes%']
|
|
||||||
age = self.main.deck.created
|
|
||||||
else:
|
|
||||||
deckSize = "noDeck"
|
|
||||||
deckRecall = ""
|
|
||||||
age = ""
|
|
||||||
d = {"ver": ankiqt.appVersion,
|
d = {"ver": ankiqt.appVersion,
|
||||||
"size": deckSize,
|
|
||||||
"ret": deckRecall,
|
|
||||||
"age": age,
|
|
||||||
"pver": pver,
|
"pver": pver,
|
||||||
"plat": plat,
|
"plat": plat,
|
||||||
"id": self.config['id'],
|
"id": self.config['id'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue