mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Mage, Initial Cond: Fix INI files export.
This commit is contained in:
1 parent
e66b7f665a
commit
d9176c6d83
3 files changed
+39
-7
No files matched your search
@@ -217,3 +217,12 @@ class InitialConditions(object):
|
||||
|
||||
self._data.append(new)
|
||||
prev = new
|
||||
|
||||
is_reverse = False
|
||||
if profiles[0].kp > profiles[-1].kp:
|
||||
is_reverse = True
|
||||
|
||||
self._data.sort(
|
||||
reverse = not is_reverse,
|
||||
key = lambda d: d['kp']
|
||||
)
|
||||
Reference in new issue
Block a user