Skip to content

Commit

Permalink
Get report ID correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Dec 25, 2024
1 parent 1f93b3a commit bffb98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsedmarc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ def process_reports(reports_):
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"])
Expand Down

0 comments on commit bffb98d

Please sign in to comment.