Commit 82ab7b54 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

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

Showing with 3 additions and 1 deletion
+3 -1
...@@ -136,7 +136,9 @@ class TableModel(PamhyrTableModel): ...@@ -136,7 +136,9 @@ class TableModel(PamhyrTableModel):
) )
) )
elif self._headers[column] == "type": 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( key = next(
k for k, v in self._long_types.items() k for k, v in self._long_types.items()
if v == value if v == value
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment