Total row for telegram "/status table" command
fix mypy warnings
This commit is contained in:
parent
d7479fda1f
commit
915ff7e1bf
@ -363,7 +363,7 @@ class Telegram(RPCHandler):
|
|||||||
total_sum = 0
|
total_sum = 0
|
||||||
if show_total:
|
if show_total:
|
||||||
total_sum = sum(
|
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]),
|
map(lambda trade: re.compile(".*\\((-?\\d*\\.\\d*)\\)").match(trade[-1]),
|
||||||
statlist))
|
statlist))
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user