Friction: Fix load method in case of multiple reaches.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-06 11:05:55 +01:00
1 parent 5ab06dbe51
commit 45ee8a9662
7 files changed
+36 -21

No files matched your search

+3 -1
View File
@@ -50,10 +50,12 @@ class FrictionList(PamhyrModelList):
def _db_load(cls, execute, data=None):
new = cls(status=data['status'])
new._lst = Friction._db_load(
ilst = Friction._db_load(
execute, data
)
new._lst = list(map(lambda x: x[1], sorted(ilst)))
return new
def _db_save(self, execute, data=None):