diff options
author | André Glüpker <git@wgmd.de> | 2016-03-19 13:22:43 +0100 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2016-03-19 13:22:43 +0100 |
commit | b8eaf250426796ed4420a8cdc84a96f387ffd155 (patch) | |
tree | d1f804b3d757a8a3123fa279d29fe94b63c0f2c4 | |
parent | 35d380bf4248f87b78d70b9897e2f2291ed8b322 (diff) | |
download | 9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.tar.gz 9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.tar.bz2 9kwpyqt-b8eaf250426796ed4420a8cdc84a96f387ffd155.zip |
Display current worker count
-rwxr-xr-x | 9kwpyqt.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |