mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
more useful version info
This commit is contained in:
parent
41868f1c95
commit
6d53fdc327
1 changed files with 2 additions and 3 deletions
|
@ -6,8 +6,7 @@ from PyQt4.QtGui import *
|
||||||
import urllib, urllib2, os, sys, time, httplib
|
import urllib, urllib2, os, sys, time, httplib
|
||||||
import anki, anki.utils, anki.lang, anki.stats
|
import anki, anki.utils, anki.lang, anki.stats
|
||||||
import ankiqt
|
import ankiqt
|
||||||
import simplejson
|
import simplejson, platform
|
||||||
import tempfile
|
|
||||||
|
|
||||||
baseUrl = "http://anki.ichi2.net/update/"
|
baseUrl = "http://anki.ichi2.net/update/"
|
||||||
#baseUrl = "http://localhost:8001/update/"
|
#baseUrl = "http://localhost:8001/update/"
|
||||||
|
@ -22,7 +21,7 @@ class LatestVersionFinder(QThread):
|
||||||
self.config = main.config
|
self.config = main.config
|
||||||
# calculate stats before we start a new thread
|
# calculate stats before we start a new thread
|
||||||
plat=sys.platform
|
plat=sys.platform
|
||||||
pver=sys.version.replace("\n", "--")
|
pver=platform.platform()
|
||||||
if self.main.deck != None:
|
if self.main.deck != None:
|
||||||
deckSize = self.main.deck.cardCount
|
deckSize = self.main.deck.cardCount
|
||||||
stats = self.main.deck.getStats()
|
stats = self.main.deck.getStats()
|
||||||
|
|
Loading…
Reference in a new issue