Changeset 9b1abd2 in flexograder for scripts/import3.py
- Timestamp:
- 12/16/25 16:28:34 (4 months ago)
- Branches:
- fake-data, main, master
- Children:
- 1a60982
- Parents:
- a14c6b0
- File:
-
- 1 edited
-
scripts/import3.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/import3.py
ra14c6b0 r9b1abd2 86 86 "answers": {}, 87 87 "domain": current_domain, 88 "topic": current_topic ,89 "subtopic": current_subtopic ,88 "topic": current_topic["title"] if current_topic is not None else None, 89 "subtopic": current_subtopic["title"] if current_subtopic is not None else None, 90 90 } 91 91 continue … … 110 110 # ---- Print results for debugging ---- 111 111 112 print(domains)113 114 112 for q in questions: 115 113 options = [ … … 118 116 ] 119 117 if not options: 120 print(f" ⚠Warning: {q['qid']} has no answer options — inserting placeholder.")118 print(f"Warning: {q['qid']} has no answer options — inserting placeholder.") 121 119 options = [AnswerOption(id="A", text="(keine Antwortoptionen gefunden)")] 122 120 else: … … 126 124 text=q["text"], 127 125 topic=q["topic"], 128 subtopic= ["subtopic"],126 subtopic=q["subtopic"], 129 127 options=options) 130 128 question_catalog.add_questions([current])
Note:
See TracChangeset
for help on using the changeset viewer.
