From 8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 16 Aug 2016 09:34:54 +0200 Subject: 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. --- 9kwpyqt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '9kwpyqt.py') 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() -- cgit v1.2.3