Skip to content
Snippets Groups Projects

Fix regex for quiz ids

Merged Chris Lattman requested to merge fix-regex-quiz-ids into main
Compare and
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -60,7 +60,7 @@ while True:
# Get module IDs of quiz questions
quiz_questions_matches = findall(
"'fields': {[^_]+_name': '.*[q|Q]uiz.*',\s+'xml_attributes': [^}]+}}",
"'fields': {\s+'children': \[\s+\[\s+'html',[^_]+_name': '.*[q|Q]uiz.*',\s+'xml_attributes': [^}]+}}",
formatted_document
)
question_id_to_quiz_id = {}