Copy report before modifying begin_date and end_date in save_smtp_tls_report functions

This commit is contained in:
Sean Whalen committed 2026-03-22 13:13:21 -04:00
1 parent 9a5b5310fa
commit cb2384be83
2 files changed
+2

No files matched your search

+1
View File
@@ -735,6 +735,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
+1
View File
@@ -764,6 +764,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