From 83dda3ce616d887e564399bbd5ead1f9da96bedd Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 14 Feb 2022 20:42:24 +0000 Subject: [PATCH] Fix notification priorities --- handler/notify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handler/notify.py b/handler/notify.py index 0c2bec4..7d9226c 100644 --- a/handler/notify.py +++ b/handler/notify.py @@ -32,14 +32,14 @@ class Notify(object): def notify_new_trade(self, amount, currency): amount_usd = self.agora.to_usd(amount, currency) - self.sendmsg(f"Total: {amount_usd}", title="New trade", tags="trades", priority=2) + self.sendmsg(f"Total: {amount_usd}", title="New trade", tags="trades", priority="2") def notify_complete_trade(self, amount, currency): amount_usd = self.agora.to_usd(amount, currency) - self.sendmsg(f"Total: {amount_usd}", title="Trade complete", tags="trades,profit", priority=3) + self.sendmsg(f"Total: {amount_usd}", title="Trade complete", tags="trades,profit", priority="3") def notify_withdrawal(self, amount_usd): - self.sendmsg(f"Total: {amount_usd}", title="Withdrawal", tags="profit", priority=4) + self.sendmsg(f"Total: {amount_usd}", title="Withdrawal", tags="profit", priority="4") def notify_need_topup(self, amount_usd_xmr, amount_usd_btc): - self.sendmsg(f"XMR: {amount_usd_xmr} | BTC: {amount_usd_btc}", title="Topup needed", tags="admin", priority=5) + self.sendmsg(f"XMR: {amount_usd_xmr} | BTC: {amount_usd_btc}", title="Topup needed", tags="admin", priority="5")