Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 180785c

Browse files
committed
fix lint
1 parent ac60084 commit 180785c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/codegate/api/v1_processing.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,11 +520,13 @@ async def remove_duplicate_alerts(alerts: List[v1_models.Alert]) -> List[v1_mode
520520
trigger_string_content = ""
521521
if isinstance(alert.trigger_string, dict):
522522
# If it's a dict, use relevant fields for deduplication
523-
trigger_string_content = json.dumps({
524-
'name': alert.trigger_string.get('name'),
525-
'type': alert.trigger_string.get('type'),
526-
'status': alert.trigger_string.get('status')
527-
})
523+
trigger_string_content = json.dumps(
524+
{
525+
"name": alert.trigger_string.get("name"),
526+
"type": alert.trigger_string.get("type"),
527+
"status": alert.trigger_string.get("status"),
528+
}
529+
)
528530
elif isinstance(alert.trigger_string, str):
529531
# If it's a string, use the part before "Context" if it exists
530532
trigger_string_content = alert.trigger_string.split("Context")[0]

0 commit comments

Comments
 (0)