mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user