みてるぞ 2 weeks ago
parent
commit
bf36d05ed3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      get_videos.py

+ 2
- 1
get_videos.py View File

@@ -30,13 +30,14 @@ def main (

videos: list[VideoDict] = []
for row in Video.all ():
deleted_at = row.deleted_at.date () if row.deleted_at else None
video: VideoDict = { 'id': row.id,
'code': row.code,
'title': row.title,
'description': row.description,
'tags': [],
'uploaded_at': row.uploaded_at,
'deleted_at': row.deleted_at.date () }
'deleted_at': deleted_at }
for video_tag in row.video_tags:
if video_tag.untagged_at is None:
video['tags'].append (video_tag.tag.name)


Loading…
Cancel
Save