Surplus_Up (2DU) 7 gadi atpakaļ
vecāks
revīzija
fcb4adf456
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      func.py

+ 1 - 1
func.py

@@ -133,7 +133,7 @@ def captcha_post(re_data, num = 1):
                 else:
                 else:
                     data = data.read().decode(data.headers.get_content_charset())
                     data = data.read().decode(data.headers.get_content_charset())
                     json_data = json.loads(data)
                     json_data = json.loads(data)
-                    if data.status_code == 200 and json_data['success'] == True:
+                    if data.getcode() == 200 and json_data['success'] == True:
                         return 0
                         return 0
                     else:
                     else:
                         return 1
                         return 1