diff --git a/src/ol_openedx_chat/block.py b/src/ol_openedx_chat/block.py index 7664e87f..64846444 100644 --- a/src/ol_openedx_chat/block.py +++ b/src/ol_openedx_chat/block.py @@ -80,12 +80,17 @@ def student_view_aside(self, block, context=None): if getattr(self.runtime, "is_author_mode", False): return self.author_view_aside(block, context) - # if getattr(block, "category", None) == "video": - # content, filename, mimetype = get_transcript_from_contentstore(block, 'en', 'txt', block.get_transcripts_info()) + if getattr(block, "category", None) == "video": + content, filename, mimetype = get_transcript_from_contentstore(block, 'en', 'txt', block.get_transcripts_info()) print("\n\n\n IN ASIDE\n\n\n") fragment = Fragment("") - fragment.add_content(render_template("static/html/student_view.html", {"block_key": self.scope_ids.usage_id.usage_key.block_id})) + fragment.add_content( + render_template( + "static/html/student_view.html", + {"block_key": self.scope_ids.usage_id.usage_key.block_id} + ) + ) fragment.add_css(get_resource_bytes("static/css/ai_chat.css")) fragment.add_javascript(get_resource_bytes("static/js/ai_chat.js")) fragment.add_javascript(get_resource_bytes("static/js/aiChat.umd.js"))