Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion EGE/Html.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def make_question_html(q):
+ "\n" for i, v in enumerate(q.variants))
if q.export_type() == 'di':
result = li(q.correct) + "\n"
return div(f"{q.text}\n" + ol("\n" + result) + "\n", class_='q') + "\n"
unit = str(type(q)).split('.')[-2]
return div(f"<h3>{unit}</h3>{q.text}\n" + ol("\n" + result) + "\n", class_='q') + "\n"

def make_html(questions):
return global_head() + tag('body', map(make_question_html, questions)) + '</html>\n'