HS: Basic: Display set type question only if previous type is not ND.

setup.py
Pierre-Antoine Rouby 2024-01-24 10:22:58 +01:00
parent 00f0e39eda
commit 82ab7b5429
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ class TableModel(PamhyrTableModel):
)
)
elif self._headers[column] == "type":
if self._question_set_type():
old_type = self._data.basic_structure(row).type
if old_type == "ND" or self._question_set_type():
key = next(
k for k, v in self._long_types.items()
if v == value