mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Logging updated view counts.
This commit is contained in:
parent
63337e6a9a
commit
2585149efe
1 changed files with 3 additions and 0 deletions
|
|
@ -509,8 +509,11 @@ def update_view_count(channel_id: int):
|
|||
SET view_count = s.view_count
|
||||
FROM source as s
|
||||
WHERE source_id=s.id AND channel_id=%s
|
||||
RETURNING video.id AS updated_ids
|
||||
'''
|
||||
curs.execute(stmt, (view_counts_str, channel_id))
|
||||
count = len(curs.fetchall())
|
||||
logger.debug(f'Updated {count} view counts in DB.')
|
||||
|
||||
|
||||
minimize_channel = partial(minimize_dict, keys=MINIMUM_CHANNEL_KEYS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue