Total row for telegram "/status table" command
fix mypy warnings
This commit is contained in:
@@ -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))
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user