summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index f23cea7..cbc84be 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -219,14 +219,15 @@ class CaptchaGUI(QWidget):
self.networkQueueReply.finished.connect(self.getQueueFinished)
def getQueueFinished(self):
+ # Should be name=value|name2=value2|name3=value3...
content = str(self.networkQueueReply.readAll(), encoding='utf-8')
datatmp = content.split('|')
data = dict()
for stat in datatmp:
- tmp = stat.split('=')
- data[tmp[0]] = tmp[1]
- self.currentQueued = 0
- self.currentWorker = 0
+ if '=' in stat:
+ tmp = stat.split('=')
+ data[tmp[0]] = tmp[1]
+ self.currentQueued = self.currentWorker = 0
if 'queue' in data and data['queue'].isnumeric():
self.currentQueued = int(data['queue'])
if 'workertext' in data and data['workertext'].isnumeric():