Skip to content

Commit abb02bd

Browse files
committed
fix: Pass arguments to the find_all() function
1 parent 8d9d9b7 commit abb02bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commons/data_access_layer/cosmos_db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ class CosmosDBDao(CRUDDao):
255255
def __init__(self, repository: CosmosDBRepository):
256256
self.repository = repository
257257

258-
def get_all(self, conditions: dict = {}) -> list:
258+
def get_all(self, conditions: dict = {}, **kwargs) -> list:
259259
event_ctx = self.create_event_context("read-many")
260-
return self.repository.find_all(event_ctx, conditions=conditions)
260+
return self.repository.find_all(event_ctx, conditions=conditions, **kwargs)
261261

262262
def get(self, id):
263263
event_ctx = self.create_event_context("read")

time_tracker_api/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class CRUDDao(abc.ABC):
1818
@abc.abstractmethod
19-
def get_all(self, conditions: dict):
19+
def get_all(self, conditions: dict, **kwargs):
2020
raise NotImplementedError # pragma: no cover
2121

2222
@abc.abstractmethod

0 commit comments

Comments
 (0)