From 7b85b99ba4c3b47cc7aa8cfe4a210960649632b8 Mon Sep 17 00:00:00 2001 From: protokey Date: Wed, 9 Sep 2026 16:22:53 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B1=D0=B0=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/engine/actions.py | 2 ++ src/main.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/actions.py b/src/engine/actions.py index f09be90..17852d7 100644 --- a/src/engine/actions.py +++ b/src/engine/actions.py @@ -44,4 +44,6 @@ async def execute(page: Page, actions: list[ActionRequest]) -> list[str]: except Exception as e: actions_result.append({"type": act.type, "ok": "false", "error": str(e)}) break + else: + actions_result.append({"type": act.type, "ok": "true"}) return actions_result diff --git a/src/main.py b/src/main.py index 3f15c3a..eaded3f 100644 --- a/src/main.py +++ b/src/main.py @@ -38,7 +38,7 @@ async def solve(request: Request, payload: SolveRequest): actions_result = await actions.execute(page, payload.actions) status = not "error" in actions_result[-1] error = ["Something error", None][status] - cookies = await camoufo.cookies() + # cookies = await camoufo.cookies() html = await page.inner_html('html') await page.screenshot( path=( @@ -49,7 +49,7 @@ async def solve(request: Request, payload: SolveRequest): return { "status": ["err", "ok"][status], "html": html, - "cookies": cookies, + # "cookies": cookies, "actions": actions_result, "error": error, }