mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
json.loads on body to convert from string
This commit is contained in:
parent
f97d79944e
commit
a780ae5fc9
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
@ -19,7 +20,7 @@ def handler(event, context):
|
||||||
# Assuming a file in a bucket landing for now?
|
# Assuming a file in a bucket landing for now?
|
||||||
# Assuming we have a model to use
|
# Assuming we have a model to use
|
||||||
|
|
||||||
body = event["body"]
|
body = json.loads(event["body"])
|
||||||
|
|
||||||
data_path = body["file_location"]
|
data_path = body["file_location"]
|
||||||
property_id = body["property_id"]
|
property_id = body["property_id"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue