mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix bug
This commit is contained in:
@@ -149,10 +149,6 @@ class Base:
|
|||||||
|
|
||||||
@db_update
|
@db_update
|
||||||
def create(self, db: Session):
|
def create(self, db: Session):
|
||||||
# 如果是对象,转换为json字符串
|
|
||||||
for key, value in self.__dict__.items():
|
|
||||||
if ObjectUtils.is_obj(value):
|
|
||||||
setattr(self, key, json.dumps(value))
|
|
||||||
db.add(self)
|
db.add(self)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user