From 6c91b2e622269da434fcd7e1549cae1aaaf165fc Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 22 Feb 2024 18:03:00 +0100 Subject: [PATCH] Fix nullable attribute for description column in Video model --- src/models/Video.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/models/Video.py b/src/models/Video.py index 45a2aa3..129be29 100644 --- a/src/models/Video.py +++ b/src/models/Video.py @@ -10,8 +10,7 @@ class Video(Base): id = Column(Integer, primary_key=True, autoincrement=True) title: str = Column(String, nullable=False) - description: str = Column(String, nullable=F - alse) + description: str = Column(String, nullable=False) script: str = Column(String, nullable=False) timed_script: dict = Column(MutableList.as_mutable(JSON), nullable=False) timestamp: datetime = Column(DateTime, nullable=False, default=datetime.now())