summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-08-16 09:34:54 +0200
committerAndré Glüpker <git@wgmd.de>2016-08-16 09:34:54 +0200
commit8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d (patch)
tree8a393677bc9eeec6e1e756471598ea49195fe6b0
parent26efee84e9143600171fca540bf81e6fba198100 (diff)
download9kwpyqt-8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d.tar.gz
9kwpyqt-8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d.tar.bz2
9kwpyqt-8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d.zip
Invalidate current CaptchaID when submitting
Before it was set invalid, when we got the reply. This way it was possible to submit multiple answers for one captcha.
-rwxr-xr-x9kwpyqt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index b29a185..7e25142 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -296,6 +296,7 @@ class CaptchaGUI(QWidget):
self.networkCaptchaAnswer = QNetworkRequest(url)
self.networkCaptchaAnswerReply = self.NetworkManager.get(self.networkCaptchaAnswer)
self.networkCaptchaAnswerReply.finished.connect(self.setCaptchaAnswerCommit)
+ self.currentCaptchaID = None
def setCaptchaAnswerCommit(self):
message = str(self.networkCaptchaAnswerReply.readAll(), encoding='utf-8')
@@ -318,7 +319,6 @@ class CaptchaGUI(QWidget):
self.networkCaptchaAnswerReply.finished.connect(self.setCaptchaAnswerSkipped)
else:
self.currentSkipped += 1
- self.currentCaptchaID = None
self.updateStats()
self.getCaptchaID()