From 1d1c0dc3e5b985976226805fdbd44a97c0a2b706 Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez <56565994+tommygonzaleza@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:33:22 -0400 Subject: [PATCH] Update actions.py --- breathecode/registry/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/breathecode/registry/actions.py b/breathecode/registry/actions.py index 8cfa67642..70060beef 100644 --- a/breathecode/registry/actions.py +++ b/breathecode/registry/actions.py @@ -788,8 +788,9 @@ def process_asset_config(asset, config): asset.with_solutions = True asset.with_video = True - if "agent" in config: - asset.agent = config["agent"] + if "editor" in config: + if "agent" in config["editor"]: + asset.agent = config["editor"]["agent"] if "solution" in config: asset.with_solutions = True