mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Adists: OutputRK: Fix save and table display.
This commit is contained in:
1 parent
0e1e3665a6
commit
ffa065a3e6
2 files changed
+7
-5
No files matched your search
@@ -195,7 +195,7 @@ class OutputRKAdists(SQLSubModel):
|
|||||||
"VALUES (" +
|
"VALUES (" +
|
||||||
f"{self.id}, {self._db_format({self.is_deleted()})}" +
|
f"{self.id}, {self._db_format({self.is_deleted()})}" +
|
||||||
f"{self._reach}, {self._rk}, " +
|
f"{self._reach}, {self._rk}, " +
|
||||||
f"'{self._db_format(self._title)}'" +
|
f"'{self._db_format(self._title)}', " +
|
||||||
f"{self._status.scenario_id}" +
|
f"{self._status.scenario_id}" +
|
||||||
")"
|
")"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -65,11 +65,13 @@ class ComboBoxDelegate(QItemDelegate):
|
|||||||
.get(index.row()) \
|
.get(index.row()) \
|
||||||
.reach
|
.reach
|
||||||
|
|
||||||
reach = next(filter(
|
|
||||||
lambda edge: edge.id == reach_id, self._data.edges()
|
|
||||||
))
|
|
||||||
|
|
||||||
if reach_id is not None:
|
if reach_id is not None:
|
||||||
|
reach = next(
|
||||||
|
filter(
|
||||||
|
lambda edge: edge.id == reach_id, self._data.edges()
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
val = list(
|
val = list(
|
||||||
map(
|
map(
|
||||||
lambda rk: str(rk), reach.reach.get_rk()
|
lambda rk: str(rk), reach.reach.get_rk()
|
||||||
|
|||||||
Reference in new issue
Block a user