From eaef1a90e05d223a7169bf1777fd7b0a48cc5e7e Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Tue, 22 Jul 2025 11:32:18 +0530 Subject: [PATCH] Also send task as arg to update fn --- app/main.py | 2 +- app/update.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 3a807cb..c3eea08 100644 --- a/app/main.py +++ b/app/main.py @@ -51,7 +51,7 @@ async def automa_hook(request: Request): # **NOTE**: If this takes a long time, make # sure to return a response to the webhook # before starting the update process. - update(folder) + update(folder, body["data"]["task"]) # Propose code await automa.code.propose( diff --git a/app/update.py b/app/update.py index 1453bd1..6d28bd4 100644 --- a/app/update.py +++ b/app/update.py @@ -1,7 +1,7 @@ -from automa.bot import CodeFolder +from automa.bot import CodeFolder, TaskForCode -def update(folder: CodeFolder): +def update(folder: CodeFolder, task: TaskForCode): """ Update code in the specified folder. """