Don't export "hum" date versions for trade objects.
They are not used and have a rather high performance penalty due to using arrow.get
This commit is contained in:
@@ -294,6 +294,7 @@ class Telegram(RPCHandler):
|
||||
|
||||
messages = []
|
||||
for r in results:
|
||||
r['open_date_hum'] = arrow.get(r['open_date']).humanize()
|
||||
lines = [
|
||||
"*Trade ID:* `{trade_id}` `(since {open_date_hum})`",
|
||||
"*Current Pair:* {pair}",
|
||||
|
||||
Reference in New Issue
Block a user