Skip to content
Snippets Groups Projects
Commit 612c7f3a authored by Sydney May's avatar Sydney May
Browse files

Merge branch 'fix-regex-quiz-ids' into 'main'

Fix regex for quiz ids

See merge request !10
parents d2583a87 93ca5920
1 merge request!10Fix regex for quiz ids
...@@ -60,7 +60,7 @@ while True: ...@@ -60,7 +60,7 @@ while True:
# Get module IDs of quiz questions # Get module IDs of quiz questions
quiz_questions_matches = findall( 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 formatted_document
) )
question_id_to_quiz_id = {} question_id_to_quiz_id = {}
......
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