From 12bab5014657ec6e6b4e768bf1c9e03f9dcbc6fa Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Sun, 20 May 2018 17:48:02 -0700 Subject: [PATCH] working on aws lambda loading --- freqtrade/aws/strategy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 61b56384c..1156a0cf9 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -94,6 +94,10 @@ def code(event, context): :return: """ + print("event") + print(event) + print("context") + print(context) assert 'pathParameters' in event assert 'user' in event['pathParameters'] assert 'name' in event['pathParameters'] @@ -112,11 +116,10 @@ def code(event, context): return { "headers:": {"Content-Type": "text/plain"}, - "statusCode": response['ResponseMetadata']['HTTPStatusCode'], + "statusCode": 200, "body": str(content) } else: - return { "statusCode": 403, "body": json.dumps({"success": False, "reason": "Denied"})