From 16dc839a1f2948ff75622e086f82db520a9c6a1b Mon Sep 17 00:00:00 2001 From: Anatoly Bogomolov Date: Fri, 12 Apr 2024 20:19:32 +1000 Subject: [PATCH] changed default for delete field in users model --- app/models/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.py b/app/models/user.py index 6184564..96ebdec 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -1,4 +1,4 @@ -from sqlalchemy import Integer, null +from sqlalchemy import Integer, false, null from sqlalchemy.schema import ( Column, ForeignKey, @@ -16,7 +16,7 @@ class User(db.Model): username: Mapped[str] = mapped_column(nullable=True) description: Mapped[str] = mapped_column(nullable=True) - delete: Mapped[bool] = mapped_column(default="false") + delete: Mapped[bool] = mapped_column(default=false) collection_id = Column(Integer, ForeignKey("collection.id")) collection: Mapped["Collection"] = relationship("Collection", back_populates="users")