We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1896154 commit f0429cbCopy full SHA for f0429cb
functions/technologies/libs/queries.py
@@ -7,7 +7,6 @@
7
from .utils import convert_to_array
8
from .presenters import Presenters
9
10
-
11
DB = firestore.Client(project=os.environ.get('PROJECT'), database=os.environ.get('DATABASE'))
12
13
def list_data(params):
@@ -30,6 +29,9 @@ def list_data(params):
30
29
params_array = convert_to_array(params['category'])
31
query = query.where(filter=FieldFilter('category_obj', 'array_contains_any', params_array))
32
+ if 'client' in params:
33
+ query = query.where(filter=FieldFilter('client', '==', params['client']))
34
+
35
if 'onlyname' in params:
36
onlyname = True
37
0 commit comments