From e5718a50b2f2ad0d094493b68360f956bdc2de37 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 19 Oct 2023 17:15:46 +0800 Subject: [PATCH] fix bug --- app/db/models/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/db/models/__init__.py b/app/db/models/__init__.py index e5e60eec..c0e0392f 100644 --- a/app/db/models/__init__.py +++ b/app/db/models/__init__.py @@ -13,7 +13,6 @@ class Base: @db_update def create(self, db: Session) -> Self: db.add(self) - db.refresh(self) return self @classmethod