diff --git a/nico.py b/nico.py index cf48ee7..8c40543 100644 --- a/nico.py +++ b/nico.py @@ -140,7 +140,7 @@ def get_kiriban_list ( if code in [kiriban[1]['contentId'] for kiriban in kiriban_list]: continue previous_views_count = cast (int, (VideoHistory - .where_has ('videos', + .where_has ('video', lambda q: q.where ( 'code', code)) .where ('fetched_at', '<', latest_fetched_at)