From bffb98d2173949be1ea00b92684d3b6a425dca77 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Wed, 25 Dec 2024 16:37:40 -0500 Subject: [PATCH] Get report ID correctly --- parsedmarc/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 9a032f5..f5454f4 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -1421,7 +1421,7 @@ def _main(): logger.error("Failed to parse {0} - {1}".format(result[1], result[0])) else: if result[0]["report_type"] == "aggregate": - report_id = result[0]["report"]["report_id"] + report_id = result[0]["report"]["report_metadata"]["report_id"] if report_id not in SEEN_AGGREGATE_REPORT_IDS: SEEN_AGGREGATE_REPORT_IDS[report_id] = report_id aggregate_reports.append(result[0]["report"])