Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 15, 2025
1 parent faeedd0 commit 8e66c10
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ol_openedx_chat/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from xblock.fields import Boolean, Scope, String
from xmodule.x_module import AUTHOR_VIEW, STUDENT_VIEW

from xmodule.video_block.transcripts_utils import get_transcript_from_contentstore


def get_resource_bytes(path):
"""
Expand Down Expand Up @@ -85,7 +83,12 @@ def student_view_aside(self, block, context=None):

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 8e66c10

Please sign in to comment.