Merge pull request #216 from Hestia-Homes/main

json.loads on body to convert from string
This commit is contained in:
KhalimCK 2023-09-04 18:35:12 +01:00 committed by GitHub
commit 6374ce8542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
import json
import os
import logging
@ -19,7 +20,7 @@ def handler(event, context):
# Assuming a file in a bucket landing for now?
# Assuming we have a model to use
body = event["body"]
body = json.loads(event["body"])
data_path = body["file_location"]
property_id = body["property_id"]