From d7479fda1fbc12bd1e48c40e1f4d0a4e0d79f22f Mon Sep 17 00:00:00 2001 From: Eugene Schava Date: Mon, 17 May 2021 12:53:57 +0300 Subject: [PATCH] Total row for telegram "/status table" command fix compiler warnings --- freqtrade/rpc/telegram.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index d4a79e860..11b84de19 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -362,7 +362,11 @@ class Telegram(RPCHandler): show_total = fiat_currency != '' total_sum = 0 if show_total: - total_sum = sum(map(lambda m: float(m[1]) if m else 0, map(lambda trade: re.compile(".*\((-?\d*\.\d*)\)").match(trade[-1]), statlist))) + total_sum = sum( + map(lambda m: float(m[1]) if m else 0, + map(lambda trade: re.compile(".*\\((-?\\d*\\.\\d*)\\)").match(trade[-1]), + statlist)) + ) max_trades_per_msg = 50 """ Calculate the number of messages of 50 trades per message