fix(chalice): working on a fix for reversed user-journey (reversed links) (#3028)

This commit is contained in:
Kraiem Taha Yassine 2025-02-12 15:32:18 +01:00 committed by GitHub
parent 118412d4ab
commit c4c5fcc2b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ def __transform_journey(rows, reverse_path=False):
links.append(link)
return {"nodes": nodes_values,
"links": sorted(links, key=lambda x: (x["source"], x["target"]), reverse=False)}
"links": sorted(links, key=lambda x: (x["source"], x["target"]), reverse=reverse_path)}
JOURNEY_TYPES = {