Browse Source

TODO 追加

main
みてるぞ 3 hours ago
parent
commit
8aa8c708b9
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      update_db.py

+ 6
- 2
update_db.py View File

@@ -29,7 +29,11 @@ def update_video_table (
video_dao,
api_data: list[dict],
) -> None:
videos = video_dao.fetch_all ()
# TODO: 書くこと

video_dao.upsert_all (videos)

video_dao.delete_nonexistent_data (video_id_list)

# TODO: 書くこと

@@ -42,7 +46,7 @@ def fetch_comments (

action_track_id = (
''.join (random.choice (string.ascii_letters + string.digits)
for _ in range (10))
for _ in range (10))
+ '_'
+ str (random.randrange (10 ** 12, 10 ** 13)))



Loading…
Cancel
Save