Skip to content

Commit

Permalink
geo params change for ALL option
Browse files Browse the repository at this point in the history
  • Loading branch information
maceto committed Nov 6, 2023
1 parent 8bb60ca commit 750328f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion functions/cwvtech/libs/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def list_data(params):
query = query.where('date', '<=', params['end'])

if 'geo' in params:
query = query.where('geo', '==', params['geo'])
if params['geo'] != 'ALL':
query = query.where('geo', '==', params['geo'])
if 'technology' in params:
query = query.where('technology', '==', params['technology'])
if 'rank' in params:
Expand Down
3 changes: 2 additions & 1 deletion functions/technologies/libs/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def list_data(params):
if 'end' in params:
query = query.where('date', '<=', params['end'])
if 'geo' in params:
query = query.where('geo', '==', params['geo'])
if params['geo'] != 'ALL':
query = query.where('geo', '==', params['geo'])
if 'technology' in params:
params_array = convert_to_array(params['technology'])
query = query.where('technology', 'in', params_array)
Expand Down

0 comments on commit 750328f

Please sign in to comment.