Skip to content

Commit ab0c238

Browse files
committed
[arno] added keyes in response syntax
1 parent 4a4735c commit ab0c238

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

certificate_auto_gen/rout.rest

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Content-Type: application/json
88
###
99
GET https://ze0hor39xk.execute-api.us-east-1.amazonaws.com/default/certificate_automation
1010
###
11-
GET https://oe4ok52utf.execute-api.us-east-1.amazonaws.com/default/TestLambda
11+
GET https://emvnh9buoh.execute-api.us-east-1.amazonaws.com/getData?device_id=8&start_time=2024-01-01&&;DROP%20TABLE%20users;%20--&end_time=2024-01-02

climate_net_api/lambda_function.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def lambda_handler(event, context):
200200

201201
return {
202202
'statusCode': 200,
203-
'body': json.dumps({'data': data}, default=str)
203+
'body': json.dumps({'keys' : ["id","timestamp","uv","lux","temprature","pressure" ,"humidity" , "pm1" ,"pm2_5","pm10","speed" ,"rain"],'data': data}, default=str)
204204
}
205205
except Exception as e:
206206
print(e)

climate_net_api/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
aws-psycopg2==1.3.8
12
psycopg2==2.9.10
23
psycopg2-binary==2.9.10
34
pytz==2024.2

0 commit comments

Comments
 (0)