Skip to content

Commit

Permalink
Remove outdated method
Browse files Browse the repository at this point in the history
  • Loading branch information
koldakov committed Mar 4, 2024
1 parent 74a5026 commit f63448d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
9 changes: 0 additions & 9 deletions app/repositories/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ class Base(DeclarativeBase):
default=uuid4,
)

def to_dict(
self,
*,
exclude: list[str] | None = None,
) -> dict:
if exclude is None:
exclude = []
return {k: v for k, v in self.__dict__.items() if not str(k).startswith("_") and str(k) not in exclude}

@classmethod
async def get(
cls,
Expand Down
14 changes: 0 additions & 14 deletions app/repositories/tests/test_base.py

This file was deleted.

0 comments on commit f63448d

Please sign in to comment.