Skip to content

Commit

Permalink
🤖 Auto-formated Python code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 24, 2024
1 parent d4ddfc4 commit 64bc919
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/api_app/monitoring/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64bc919

Please sign in to comment.