From 915ff7e1bf1887795b4a561d737c9b2f56b2eba8 Mon Sep 17 00:00:00 2001 From: Eugene Schava Date: Mon, 17 May 2021 13:03:20 +0300 Subject: [PATCH] Total row for telegram "/status table" command fix mypy warnings --- freqtrade/rpc/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 11b84de19..6a12488d1 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -363,7 +363,7 @@ class Telegram(RPCHandler): total_sum = 0 if show_total: total_sum = sum( - map(lambda m: float(m[1]) if m else 0, + map(lambda m: float(m[1]) if m else 0.0, map(lambda trade: re.compile(".*\\((-?\\d*\\.\\d*)\\)").match(trade[-1]), statlist)) )