mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
Get report ID correctly
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user