Refactor graph sorting method in chat.py

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-21 10:19:48 -03:00
commit 1b07ae35da

View file

@ -103,7 +103,7 @@ async def get_vertices(
graph = build_and_cache_graph(flow_id, session, chat_service, graph)
if component_id:
try:
vertices = graph.sort_up_to_vertex(component_id)
vertices = graph.sort_vertices(component_id)
except Exception as exc:
logger.error(f"IN DEVELOPMENT: Error getting vertices: {exc}")
logger.exception(exc)