Skip to content

Commit

Permalink
refactor: Allow use edx_video_id (edxval) in new runtime
Browse files Browse the repository at this point in the history
This is used to be retroactive in copy-paste videos from Library to Course and Course to Library
  • Loading branch information
ChrisChV committed Jan 23, 2025
1 parent 5c6819a commit 95b51e8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xmodule/video_block/video_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,6 @@ def parse_xml_new_runtime(cls, node, runtime, keys):
if key not in cls.fields: # lint-amnesty, pylint: disable=unsupported-membership-test
continue # parse_video_xml returns some old non-fields like 'source'
setattr(video_block, key, cls.fields[key].from_json(val)) # lint-amnesty, pylint: disable=unsubscriptable-object
# Don't use VAL in the new runtime:
video_block.edx_video_id = None
return video_block

@classmethod
Expand Down

0 comments on commit 95b51e8

Please sign in to comment.