summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x9kwpyqt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index 48a0118..6e9f044 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -28,6 +28,7 @@ class CaptchaGUI(QWidget):
currentCommited = 0
currentSkipped = 0
currentQueued = 0
+ currentWorker = 0
apiurl = API_URL+"?source=pythonapi&apikey="+API_KEY+"&"
offlinemessage = "Click \"Start\" to fetch next captcha."
@@ -126,7 +127,7 @@ class CaptchaGUI(QWidget):
else:
credittext = "%d ¥" % (self.currentCredits)
self.accountLabel.setText(credittext)
- labeltext = "%d Commited | %d Skipped | %d in Queue" % (self.currentCommited, self.currentSkipped, self.currentQueued)
+ labeltext = "%d Commited | %d Skipped | %d Queue | %d Worker" % (self.currentCommited, self.currentSkipped, self.currentQueued, self.currentWorker)
self.statsLabel.setText(labeltext)
def keyPressEvent(self, event):
@@ -201,6 +202,7 @@ class CaptchaGUI(QWidget):
tmp = stat.split('=')
data[tmp[0]] = tmp[1]
self.currentQueued = int(data['queue'])
+ self.currentWorker = int(data['workertext'])
self.updateStats()
self.networkQueueReply.deleteLater()
QTimer.singleShot(5000, self.getQueue)