Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
fix: sort parents list when migrate entities
Browse files Browse the repository at this point in the history
  • Loading branch information
trgiangdo committed Nov 3, 2023
1 parent c976117 commit d51b336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/taipy/core/_entity/_migrate/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __search_parent_ids(entity_id: str, data: Dict) -> List:
if entity_type == "TASK" and "SCENARIO" in _id:
if entity_id in entity_data["tasks"]:
parents.append(_id)
parents.sort()
return parents


Expand All @@ -68,6 +69,8 @@ def __search_parent_config(entity_id: str, config: Dict, entity_type: str) -> Li
if entity_type == "TASK" and possible_parents == "SCENARIO":
if section_id in entity_data["tasks"]:
parents.append(section_id)

parents.sort()
return parents


Expand Down

0 comments on commit d51b336

Please sign in to comment.