Browse Source

#1 base_date が意味をなしてゐなかったのを修正

main
みてるぞ 1 week ago
parent
commit
f6ab471e04
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nico.py

+ 3
- 1
nico.py View File

@@ -127,7 +127,9 @@ def get_kiriban_list (
) -> list[tuple[int, VideoInfo, datetime]]:
kiriban_list: list[tuple[int, VideoInfo, datetime]] = []

latest_fetched_at = cast (date, VideoHistory.max ('fetched_at'))
latest_fetched_at = cast (date, (VideoHistory
.where ('fetched_at', '<=', base_date)
.max ('fetched_at')))
previous_fetched_at = cast (date, (VideoHistory
.where ('fetched_at', '<', latest_fetched_at)
.max ('fetched_at')))


Loading…
Cancel
Save