fix chain

This commit is contained in:
jxxghp
2025-06-26 13:16:10 +08:00
parent c440ce3045
commit 2700e639f1
6 changed files with 631 additions and 623 deletions
+1 -2
View File
@@ -221,8 +221,7 @@ class Base:
@classmethod
@db_query
def list(cls, db: Session) -> List[Self]:
result = db.query(cls).all()
return list(result)
return db.query(cls).all()
def to_dict(self):
return {c.name: getattr(self, c.name, None) for c in self.__table__.columns} # noqa