more useful version info

This commit is contained in:
Damien Elmes 2010-11-13 17:06:43 +09:00
parent 41868f1c95
commit 6d53fdc327

View file

@ -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()