Scenario: Fix profile saving and loading for scenario.

This commit is contained in:
parouby committed 2025-08-15 10:08:26 +02:00
1 parent 739eb56006
commit 216239bfce
4 files changed
+41 -26

No files matched your search

+6 -3
View File
@@ -72,9 +72,12 @@ class Reach(SQLSubModel):
def _db_load(cls, execute, data=None):
new = cls(status=data["status"], parent=data["reach"])
new._profiles = ProfileXYZ._db_load(
execute,
data=data.copy()
new._profiles = sorted(
ProfileXYZ._db_load(
execute,
data=data.copy()
),
key=lambda p: p._db_ind
)
return new