From d9e3e96d8e09ff6b388880f769e36b34954c3c11 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Sun, 20 May 2018 15:25:02 -0700 Subject: [PATCH 1/2] implementing more strategy db query code --- freqtrade/aws/strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 4d4823faf..b972ac002 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -112,7 +112,7 @@ def code(event, context): return { "statusCode": response['ResponseMetadata']['HTTPStatusCode'], - "body": content + "body": str(content) } else: From ba40a251507f1a192797372e831a029ab6da94b6 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Sun, 20 May 2018 16:51:54 -0700 Subject: [PATCH 2/2] some serialization issue --- freqtrade/aws/strategy.py | 1 + serverless.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index b972ac002..61b56384c 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -111,6 +111,7 @@ def code(event, context): content = urlsafe_b64decode(response['Items'][0]['content']) return { + "headers:": {"Content-Type": "text/plain"}, "statusCode": response['ResponseMetadata']['HTTPStatusCode'], "body": str(content) } diff --git a/serverless.yml b/serverless.yml index 26ab94601..cd9b8717c 100644 --- a/serverless.yml +++ b/serverless.yml @@ -83,7 +83,6 @@ package: ############################################################################################ functions: - #TODO #returns all known strategy names from the server #and if they are private or not strategies: