mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Commiting using channel session.
This commit is contained in:
parent
a96d6f97f3
commit
8f48e1b0d2
1 changed files with 2 additions and 4 deletions
|
|
@ -176,10 +176,8 @@ def refresh_channel_videos(channel: Channel):
|
|||
|
||||
logger.info(f'{channel.name}: {len(new_videos)} new videos, {len(existing_paths)} already existed. ')
|
||||
|
||||
with get_db_session(commit=True) as session:
|
||||
# All videos have been discovered, mark the channel as refreshed.
|
||||
channel.refreshed = True
|
||||
session.add(channel)
|
||||
channel.refreshed = True
|
||||
Session.object_session(channel).commit()
|
||||
|
||||
apply_info_json(channel.id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue