Skip to content

Commit

Permalink
GF-16: Update endpoint logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mfedorchuk committed Dec 27, 2023
1 parent 6cd4160 commit 6942b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def record(request):
request_args = request.args

if request_args and 'temperature' in request_args and 'location' in request_args:
return record_data(request_args['temperature'], request_args['temperature'])
return record_data(request_args['temperature'], request_args['location'])

if request_args and 'readme' in request_args:
return "Endpoint for logging temperature data to the BigQuery. Pass temperature:int and location: str as a " \
Expand Down

0 comments on commit 6942b7c

Please sign in to comment.