diff --git a/update_db.py b/update_db.py index 036f12f..66d190c 100644 --- a/update_db.py +++ b/update_db.py @@ -34,7 +34,7 @@ class VideoResult (TypedDict): contentId: str title: str tags: str - description: str + description: str | None viewCounter: int startTime: str @@ -96,6 +96,8 @@ def update_tables ( title = datum['title'], description = datum['description'], uploaded_at = datetime.fromisoformat (datum['startTime'])) + if video.description is None: + video.description = '' video_dao.upsert (video, False) if video.id_ is not None: video_ids.append (video.id_)