(self, task_id)
| 222 | |
| 223 | @error_wrapper |
| 224 | async def claim_task(self, task_id): |
| 225 | resp = await self.post(f'{self.earn_domain}/api/v1/tasks/{task_id}/claim') |
| 226 | resp_json = await resp.json() |
| 227 | if resp_json.get('status') == "FINISHED": |
| 228 | return True |
| 229 | self._log.error(f"claim_task error: {resp_json}") |
| 230 | |
| 231 | @error_wrapper |
| 232 | async def start_farming(self): |
no test coverage detected