Skip to content

Commit

Permalink
refactor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Jan 15, 2025
1 parent faeedd0 commit 9b48764
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ol_openedx_chat/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 9b48764

Please sign in to comment.