From d4250222f83bd2c126602ccf72370e7b4e194cf0 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Thu, 24 May 2018 00:04:58 -0700 Subject: [PATCH] further working on getting rid of hyperopt --- freqtrade/aws/strategy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 7c0562d3f..9d0fb145c 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -176,6 +176,11 @@ def __evaluate(data): """ strategy = urlsafe_b64decode(data['content']).decode('utf-8') + + # comment out hyper opt references, they are no supported here + # due to lambda size limitations + strategy = "\n".join(list(map(lambda x: "#{}".format(x) if "hyperopt" in x else x, strategy.split("\n")))) + # print("loaded strategy") # print(strategy) # try to load the strategy