From aa10abc1c77b265e7631f274ced9f3e3d9bac905 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 14 Feb 2022 20:35:48 +0000 Subject: [PATCH] Set priorities for trade and withdrawal notifications --- handler/notify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handler/notify.py b/handler/notify.py index 7d1ca91..0c2bec4 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") + 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") + 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") + 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") + self.sendmsg(f"XMR: {amount_usd_xmr} | BTC: {amount_usd_btc}", title="Topup needed", tags="admin", priority=5)