MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / claim_task

Method claim_task

bot/core/api.py:224–229  ·  view source on GitHub ↗
(self, task_id)

Source from the content-addressed store, hash-verified

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):

Callers 1

check_tasksMethod · 0.80

Calls 2

postMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected