From ab9897699f213775ed853aee937198aae6a4ac0e Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Mon, 24 Jul 2023 22:12:18 +0300 Subject: [PATCH] feat: sort projects by sort_id in commit_id.json Sorting helps preventing projects shifting around as the shuttle fills up. "sort_id" is provided by the tt-app. --- configure.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.py b/configure.py index 77ad79c..835a64f 100755 --- a/configure.py +++ b/configure.py @@ -43,6 +43,7 @@ class Projects(): project = Project(index, commit_id_data['repo'], project_dir, args, is_user_project=False) project.commit_id = commit_id_data['commit'] + project.sort_id = commit_id_data['sort_id'] # projects should now be installed, so load all the data from the yaml files # fill projects will load from the fill project's directory @@ -60,6 +61,8 @@ class Projects(): self.projects.append(project) + self.projects.sort(key=lambda x: x.sort_id) + all_macro_instances = [project.get_macro_instance() for project in self.projects] self.assert_unique(all_macro_instances)