Copy report before modifying begin_date and end_date in save_smtp_tls_report functions

This commit is contained in:
Sean Whalen
2026-03-22 13:13:21 -04:00
parent 8b042e4053
commit f6f3164eba
2 changed files with 2 additions and 0 deletions

View File

@@ -782,6 +782,7 @@ def save_smtp_tls_report_to_elasticsearch(
index_date = begin_date.strftime("%Y-%m")
else:
index_date = begin_date.strftime("%Y-%m-%d")
report = report.copy()
report["begin_date"] = begin_date
report["end_date"] = end_date

View File

@@ -809,6 +809,7 @@ def save_smtp_tls_report_to_opensearch(
index_date = begin_date.strftime("%Y-%m")
else:
index_date = begin_date.strftime("%Y-%m-%d")
report = report.copy()
report["begin_date"] = begin_date
report["end_date"] = end_date