mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Setting channel id rather than channel because the channel may be in a different session.
This commit is contained in:
parent
89e3edb157
commit
1d9fe2f649
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ def upsert_video(session: Session, video_path: pathlib.Path, channel: Channel =
|
|||
if channel and not str(video_path).startswith(str(channel.directory.path)):
|
||||
raise ValueError(f'Video path is not within its channel {video_path=} not in {channel.directory=}')
|
||||
|
||||
video.channel = channel
|
||||
video.channel_id = channel.id
|
||||
video.idempotency = idempotency
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue