Total row for telegram "/status table" command

fix mypy warnings
This commit is contained in:
Eugene Schava 2021-05-17 13:03:20 +03:00
parent d7479fda1f
commit 915ff7e1bf

View File

@ -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))
)