From 0c1ed37cb260bb5284dfe3c9994cbc1b725be9d3 Mon Sep 17 00:00:00 2001 From: Robert Gottlieb Date: Thu, 25 Jan 2024 10:39:53 -0500 Subject: [PATCH] fixed bug updating events --- ci/aws-iam-check-keys/find_stale_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/aws-iam-check-keys/find_stale_keys.py b/ci/aws-iam-check-keys/find_stale_keys.py index ea76cc3..7832b26 100644 --- a/ci/aws-iam-check-keys/find_stale_keys.py +++ b/ci/aws-iam-check-keys/find_stale_keys.py @@ -78,7 +78,7 @@ def add_event_to_db(user, alert_type, access_key_num): def update_event(event, alert_type): if alert_type: - event_type = Event_Type.insert_event_type(alert_type) + event_type,_ = Event_Type.insert_event_type(alert_type) event.event_type = event_type event.cleared = False event.save()