MCPcopy
hub / github.com/pyload/pyload / setCaptchaResult

Method setCaptchaResult

module/Api.py:826–836  ·  view source on GitHub ↗

Set result for a captcha task :param tid: task id :param result: captcha result

(self, tid, result)

Source from the content-addressed store, hash-verified

824
825 @permission(PERMS.STATUS)
826 def setCaptchaResult(self, tid, result):
827 """Set result for a captcha task
828
829 :param tid: task id
830 :param result: captcha result
831 """
832 self.core.lastClientConnected = time()
833 task = self.core.captchaManager.getTaskByID(tid)
834 if task:
835 task.setResult(result)
836 self.core.captchaManager.removeTask(task)
837
838
839 @permission(PERMS.STATUS)

Callers 1

slotCaptchaDoneMethod · 0.45

Calls 3

getTaskByIDMethod · 0.80
setResultMethod · 0.80
removeTaskMethod · 0.80

Tested by

no test coverage detected