From 0222bacae5dc690fe726516825a0e3f2242c6b94 Mon Sep 17 00:00:00 2001 From: xingc Date: Mon, 28 Apr 2025 15:45:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(card):=20=E5=8D=A1=E7=89=87=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/db/models.py | 2 +- core/routers/card/schema.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/db/models.py b/core/db/models.py index b4acda1..396fcbe 100644 --- a/core/db/models.py +++ b/core/db/models.py @@ -180,7 +180,7 @@ class UserCollection(BaseModel, DateModel): DECIMAL(10, 2), default=0 ) displayed: Mapped[bool] = mapped_column( - Boolean, default=True + Boolean, default=False ) user: Mapped['User'] = relationship(back_populates='collections') diff --git a/core/routers/card/schema.py b/core/routers/card/schema.py index 831c37a..041fce7 100644 --- a/core/routers/card/schema.py +++ b/core/routers/card/schema.py @@ -71,7 +71,7 @@ class CardOut(CardVisitOut): card_year: str | None purchase_price: Optional[condecimal(max_digits=10, decimal_places=2)] = None display_price: Optional[condecimal(max_digits=10, decimal_places=2)] = None - displayed: Optional[bool] = True + displayed: Optional[bool] = False diy_source: Optional[str] = None