From e3f957a59b959b5a144daa00e626c7cad60fa7f9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 31 Dec 2025 07:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/db/__init__.py b/app/db/__init__.py index b34b767a..d854a8f0 100644 --- a/app/db/__init__.py +++ b/app/db/__init__.py @@ -454,7 +454,6 @@ class Base: @db_update def update(self, db: Session, payload: dict): - payload = {k: v for k, v in payload.items() if v is not None} for key, value in payload.items(): setattr(self, key, value) if inspect(self).detached: @@ -462,7 +461,6 @@ class Base: @async_db_update async def async_update(self, db: AsyncSession, payload: dict): - payload = {k: v for k, v in payload.items() if v is not None} for key, value in payload.items(): setattr(self, key, value) if inspect(self).detached: