このコミットが含まれているのは:
+2
-1
@@ -30,13 +30,14 @@ def main (
|
|||||||
|
|
||||||
videos: list[VideoDict] = []
|
videos: list[VideoDict] = []
|
||||||
for row in Video.all ():
|
for row in Video.all ():
|
||||||
|
deleted_at = row.deleted_at.date () if row.deleted_at else None
|
||||||
video: VideoDict = { 'id': row.id,
|
video: VideoDict = { 'id': row.id,
|
||||||
'code': row.code,
|
'code': row.code,
|
||||||
'title': row.title,
|
'title': row.title,
|
||||||
'description': row.description,
|
'description': row.description,
|
||||||
'tags': [],
|
'tags': [],
|
||||||
'uploaded_at': row.uploaded_at,
|
'uploaded_at': row.uploaded_at,
|
||||||
'deleted_at': row.deleted_at.date () }
|
'deleted_at': deleted_at }
|
||||||
for video_tag in row.video_tags:
|
for video_tag in row.video_tags:
|
||||||
if video_tag.untagged_at is None:
|
if video_tag.untagged_at is None:
|
||||||
video['tags'].append (video_tag.tag.name)
|
video['tags'].append (video_tag.tag.name)
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする