Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Corrected exclude parameter to accept valid arguments
  • Loading branch information
IgorFreitasCruz committed Apr 12, 2024
commit f11444106261b93afc27a6291894da1dd23f0f2d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class BaseSchema(BaseModel):
@property
def as_db_dict(self):
to_db = self.model_dump(exclude_defaults=True, exclude_none=True, exclude={"identifier, id"})
to_db = self.model_dump(exclude_defaults=True, exclude_none=True, exclude={"identifier", "id"})
for key in ["id", "identifier"]:
if key in self.model_dump().keys():
to_db[key] = self.model_dump()[key].hex
Expand Down