From b5d0c0ea6a3c08dbaa5a2f4885901ca195ddb148 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Sun, 20 May 2018 21:18:36 -0700 Subject: [PATCH] working on aws lambda loading --- freqtrade/aws/strategy.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 827d496ab..75e7ed60d 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -128,11 +128,7 @@ def code(event, context): if response['Items'][0]["public"]: content = urlsafe_b64decode(response['Items'][0]['content']) - return { - "headers:": {"Content-Type": "text/plain"}, - "statusCode": 200, - "body": str(content) - } + return str(content) else: return { "statusCode": 403,