From 6942b7c864458a6cb52daecbd8a739bc2a346833 Mon Sep 17 00:00:00 2001 From: mfedorchuk Date: Wed, 27 Dec 2023 23:27:53 +0200 Subject: [PATCH] GF-16: Update endpoint logic --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c7be0ee..246a8ed 100644 --- a/main.py +++ b/main.py @@ -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 " \