@@ -176,7 +176,8 @@ def find_all(self, partition_key_value: str, conditions: dict = {}, max_count=No
176176
177177 def partial_update (self , id : str , changes : dict , partition_key_value : str ,
178178 peeker : 'function' = None , visible_only = True , mapper : Callable = None ):
179- item_data = self .find (id , partition_key_value , peeker = peeker , visible_only = visible_only , mapper = dict )
179+ item_data = self .find (id , partition_key_value , peeker = peeker ,
180+ visible_only = visible_only , mapper = dict )
180181 item_data .update (changes )
181182 return self .update (id , item_data , mapper = mapper )
182183
@@ -219,8 +220,9 @@ class CosmosDBDao(CRUDDao):
219220 def __init__ (self , repository : CosmosDBRepository ):
220221 self .repository = repository
221222
222- def get_all (self ) -> list :
223- return self .repository .find_all (partition_key_value = self .partition_key_value )
223+ def get_all (self , conditions : dict = {}) -> list :
224+ return self .repository .find_all (partition_key_value = self .partition_key_value ,
225+ conditions = conditions )
224226
225227 def get (self , id ):
226228 return self .repository .find (id , partition_key_value = self .partition_key_value )
0 commit comments