Verified Commit b9e0d350 authored by Hueser, Christian (FWCC) - 138593's avatar Hueser, Christian (FWCC) - 138593
Browse files

Replace Question IDs by _ (underscore) to use ANONYMOUS_QUESTION_ID

* In some situations the CSV data header contains full IDs consisting of
QuestionCollection ID but no additional Question ID. In these cases the
framework marks these IDs with an underscore character as a placeholder
for Question IDs.
parent c92b9d33
Pipeline #103145 passed with stages
in 4 minutes and 9 seconds
......@@ -104,7 +104,7 @@ def run(hifis_surveyval: HIFISSurveyval, data: DataContainer):
# HIERARCHY_SEPARATOR which is the character "/" by default, e.g.
# "Q001/SQ001".
question_choose_center = data.question_for_id("Q001/SQ001")
question_choose_center = data.question_for_id("Q001/_")
print("5) ===== Get a Question =====")
......@@ -136,7 +136,7 @@ def run(hifis_surveyval: HIFISSurveyval, data: DataContainer):
# specific Question objects. Because of the unambiguity the ID can be
# shorter leaving out the ID part of the QuestionCollection.
question_choose_center = collection_topic_center.question_for_id("SQ001")
question_choose_center = collection_topic_center.question_for_id("_")
print("9) ===== Get a Question from a QuestionCollection =====")
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