Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit fc529d6

Browse files
committed
Fix: Find codelens id in manifest
1 parent f987332 commit fc529d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runestone/pretext/chapter_pop.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ def manifest_data_to_db(course_name, manifest_path):
171171
idchild = "fix_me"
172172
try:
173173
qtype = el.attrib["data-component"]
174+
if qtype == "codelens":
175+
# pdb.set_trace()
176+
id_el = el.find("./*[@class='pytutorVisualizer']")
177+
idchild = id_el.attrib["id"]
174178
# translate qtype to question_type
175179
qtype = QT_MAP.get(qtype, qtype)
176180
except:

0 commit comments

Comments
 (0)