From 64bc919174d0804a07cbd1cad7cfc3c04070121d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 12:02:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Auto-formated=20Python=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api_app/monitoring/tasks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/api_app/monitoring/tasks.py b/backend/api_app/monitoring/tasks.py index 620f663..87e1095 100644 --- a/backend/api_app/monitoring/tasks.py +++ b/backend/api_app/monitoring/tasks.py @@ -360,11 +360,14 @@ def trace_transaction(transaction_hash): alert__smart_contract__owner_organization=monitoring_task.SmartContract.owner_organization, ).count() - if notifications >= monitoring_task.SmartContract.owner_organization.notification_limit: + if ( + notifications + >= monitoring_task.SmartContract.owner_organization.notification_limit + ): logger.info( f"[DEBUG] Notification limit reached for organization {monitoring_task.SmartContract.owner_organization}" ) - return # we don't want to run more alerts + return # we don't want to run more alerts logger.info(f"[DEBUG] Running alert {alert.id}") alert_runner = BlockchainAlertRunner(alert, transaction)