From b8eaf250426796ed4420a8cdc84a96f387ffd155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Sat, 19 Mar 2016 13:22:43 +0100 Subject: Display current worker count --- 9kwpyqt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3