This commit is contained in:
LeonOstrez
2025-06-04 14:42:57 +02:00
parent 98f3d20029
commit 5c0cf549af

View File

@@ -916,8 +916,10 @@ class ProjectState(Base):
break
# additionally, find states for which we need to print the history convo
states_for_print = await ProjectState.get_task_conversation_project_states(
session, branch_id, UUID(conversations[-1]["taskId"]), True
)
states_for_print = []
if conversations:
states_for_print = await ProjectState.get_task_conversation_project_states(
session, branch_id, UUID(conversations[-1]["taskId"]), True
)
return conversations, states_for_print