mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix bug
This commit is contained in:
@@ -149,10 +149,6 @@ class Base:
|
||||
|
||||
@db_update
|
||||
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)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user