Browse Source

Merge branch 'main' into feature/query

feature/query
みてるぞ 1 month ago
parent
commit
b6c041ddad
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      update_db.py

+ 2
- 1
update_db.py View File

@@ -59,7 +59,8 @@ def update_tables (
video_tags = video.video_tags.where_not_null ('untagged_at').get ()
for video_tag in video_tags:
tag = video_tag.tag
if tag is not None and tag.name not in tag_names:
if (tag is not None
and (tag.name.upper () not in map (str.upper, tag_names))):
video_tag.untagged_at = now
video_tag.save ()
tags: list[Tag] = []


Loading…
Cancel
Save