@@ -176,7 +176,8 @@ def find_all(self, partition_key_value: str, conditions: dict = {}, max_count=No
176
176
177
177
def partial_update (self , id : str , changes : dict , partition_key_value : str ,
178
178
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 )
180
181
item_data .update (changes )
181
182
return self .update (id , item_data , mapper = mapper )
182
183
@@ -219,8 +220,9 @@ class CosmosDBDao(CRUDDao):
219
220
def __init__ (self , repository : CosmosDBRepository ):
220
221
self .repository = repository
221
222
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 )
224
226
225
227
def get (self , id ):
226
228
return self .repository .find (id , partition_key_value = self .partition_key_value )
0 commit comments