diff --git a/app/admin_web.py b/app/admin_web.py index c3ef9cc..96e746d 100644 --- a/app/admin_web.py +++ b/app/admin_web.py @@ -663,6 +663,26 @@ def _basis_item_workspace_body( variant_rows = [] for item in variants: usage = usage_by_item.get(item.id, {"impressions": 0.0, "unique_users": 0.0, "frequency": 0.0}) + options = item.options if isinstance(item.options, dict) else {} + options_rows = "".join( + f"
Full Stem
{escape(_html_to_text(item.stem))}
| Option | Text |
|---|
Correct Answer: {escape(item.correct_answer or '-')}
" + f"Explanation: {escape(_html_to_text(item.explanation) or '-')}
" + "