From e8efadb5523ec4ca9c357130cd08134b8d4f9b6f Mon Sep 17 00:00:00 2001 From: mijauexe Date: Wed, 23 Jul 2025 16:20:01 +0200 Subject: [PATCH] Fix old projects by pushing epic description to specification --- core/cli/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/cli/main.py b/core/cli/main.py index 786e1538..85adea3c 100644 --- a/core/cli/main.py +++ b/core/cli/main.py @@ -212,7 +212,13 @@ async def run_pythagora_session(sm: StateManager, ui: UIBase, args: Namespace): fe_states = await sm.get_fe_states(limit=10) be_back_logs, last_task_in_db = await sm.get_be_back_logs() - if sm.current_state.specification and sm.current_state.specification.original_description: + if sm.current_state.specification: + if not sm.current_state.specification.original_description: + spec = sm.current_state.specification + spec.description = project_state.epics[0]["description"] + spec.original_description = project_state.epics[0]["description"] + await sm.update_specification(spec) + await ui.send_front_logs_headers( "", ["E1 / T1", "Writing Specification", "working" if fe_states == [] else "done"],