Skip to content

Commit

Permalink
geo ALL query changed
Browse files Browse the repository at this point in the history
  • Loading branch information
maceto committed Nov 6, 2023
1 parent 03cb91f commit 8bb60ca
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion functions/adoption/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/categories/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/cwvtech/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/geos/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def dispatcher(request):

response = Result(result=COUNTRIES)

return output(response, headers)
return output(response, headers)
4 changes: 3 additions & 1 deletion functions/lighthouse/libs/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def list_data(params):
if 'end' in params:
query = query.where('date', '<=', params['end'])

query = query.where('geo', '==', params['geo'])
if params['geo'] != 'ALL':
query = query.where('geo', '==', params['geo'])

query = query.where('rank', '==', params['rank'])
query = query.where('technology', '==', technology)

Expand Down
2 changes: 1 addition & 1 deletion functions/lighthouse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/ranks/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def dispatcher(request):

response = Result(result=RANKS)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/report/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)
2 changes: 1 addition & 1 deletion functions/technologies/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def dispatcher(request):

response = list_data(result.result)

return output(response, headers)
return output(response, headers)

0 comments on commit 8bb60ca

Please sign in to comment.