Skip to content

Commit baf75ee

Browse files
authored
Merge pull request #151 from AndreiDrang/main
Release v1.1.0
2 parents 5a1d441 + 8034b9e commit baf75ee

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx==8.1.3
1+
sphinx==8.2.3
22
pallets_sphinx_themes==2.3.0
3-
myst-parser==4.0.0
3+
myst-parser==4.0.1

requirements.style.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# codestyle
2-
isort==5.*
3-
black==24.10.0
2+
isort==6.*
3+
black==25.1.0
44
autoflake==2.*

requirements.test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest==8.*
22
coverage==7.*
3-
pytest-asyncio==0.*
3+
pytest-asyncio==1.*

src/python3_capsolver/core/aio_captcha_instrument.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ async def processing_captcha(self) -> dict:
2929
self.created_task_data = CaptchaResponseSer(**await self.__create_task())
3030

3131
# if task created and already ready - return result
32-
if self.created_task_data.errorId == 0 and self.created_task_data.status == ResponseStatusEnm.Processing.value:
32+
if self.created_task_data.errorId == 0:
3333
return (await self.__get_result()).to_dict()
34-
elif self.created_task_data.errorId != 0:
34+
else:
3535
self.created_task_data.status = ResponseStatusEnm.Failed
3636

3737
return self.created_task_data.to_dict()

src/python3_capsolver/core/sio_captcha_instrument.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def processing_captcha(self) -> dict:
3636
self.created_task_data = CaptchaResponseSer(**self.__create_task())
3737

3838
# if task created and ready - return result
39-
if self.created_task_data.errorId == 0 and self.created_task_data.status == ResponseStatusEnm.Processing:
39+
if self.created_task_data.errorId == 0:
4040
return self.__get_result().to_dict()
41-
elif self.created_task_data.errorId != 0:
41+
else:
4242
self.created_task_data.status = ResponseStatusEnm.Failed
4343

4444
return self.created_task_data.to_dict()

0 commit comments

Comments
 (0)