diff options
author | André Glüpker <git@wgmd.de> | 2016-08-16 09:34:54 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2016-08-16 09:34:54 +0200 |
commit | 8d296c4110ca1b19ae1e7fe2d7fc1f7f01bc5f8d (patch) | |
tree | 8a393677bc9eeec6e1e756471598ea49195fe6b0 /9kwpyqt.py | |
parent | 26efee84e9143600171fca540bf81e6fba198100 (diff) | |
download | 9kwpyqt-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.
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |