mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Friction: Fix load method in case of multiple reaches.
This commit is contained in:
1 parent
5ab06dbe51
commit
45ee8a9662
7 files changed
+36
-21
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user