more cleanup

This commit is contained in:
2021-06-01 10:07:46 +02:00
parent 4f84b39264
commit f86192f85a
4 changed files with 2 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class HttpClient(AuthMixin):
def make_filter(where:dict=None, limit:int=0, skip:int=0, fields:dict=None, include:dict=None, order:list=None):
filt = dict()
if where is not None:
items = [{k: v} for k, v in where.items()]
items = [where.copy()]
filt["where"] = {"and": items}
if limit > 0:
filt["limit"] = limit