summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-03-19 13:22:43 +0100
committerAndré Glüpker <git@wgmd.de>2016-03-19 13:22:43 +0100
commitb8eaf250426796ed4420a8cdc84a96f387ffd155 (patch)
treed1f804b3d757a8a3123fa279d29fe94b63c0f2c4 /9kwpyqt.py
parent35d380bf4248f87b78d70b9897e2f2291ed8b322 (diff)
download9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.tar.gz
9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.tar.bz2
9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.zip
Display current worker count
Diffstat (limited to '9kwpyqt.py')
-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)