Fixed bug; could never reach the rocket emoji

This commit is contained in:
Theagainmen 2020-06-05 17:26:26 +02:00 committed by GitHub
parent a86d4a99fc
commit 01eace7798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,12 +158,12 @@ class Telegram(RPC):
microsecond=0) - msg['open_date'].replace(microsecond=0) microsecond=0) - msg['open_date'].replace(microsecond=0)
msg['duration_min'] = msg['duration'].total_seconds() / 60 msg['duration_min'] = msg['duration'].total_seconds() / 60
if float(msg['profit_percent']) >= 0.0: if float(msg['profit_percent']) > 5.0:
message = "\N{EIGHT SPOKED ASTERISK} *{exchange}:* Selling {pair}\n"
elif float(msg['profit_percent']) > 5.0:
message = ("\N{ROCKET} *{exchange}:* Selling {pair}\n").format(**msg) message = ("\N{ROCKET} *{exchange}:* Selling {pair}\n").format(**msg)
elif float(msg['profit_percent']) >= 0.0:
message = "\N{EIGHT SPOKED ASTERISK} *{exchange}:* Selling {pair}\n"
elif msg['sell_reason'] == "stop_loss": elif msg['sell_reason'] == "stop_loss":
message = ("\N{WARNING SIGN} *{exchange}:* Selling {pair}\n").format(**msg) message = ("\N{WARNING SIGN} *{exchange}:* Selling {pair}\n").format(**msg)