mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-06-11 13:09:44 +00:00
Remove unneeded fields
This commit is contained in:
@@ -252,15 +252,10 @@ def _append_parsed_record(
|
||||
if not buckets:
|
||||
return
|
||||
|
||||
num_parts = len(buckets)
|
||||
|
||||
for part_index, bucket in enumerate(buckets):
|
||||
new_rec = parsed_record.copy()
|
||||
new_rec["count"] = bucket["count"]
|
||||
|
||||
new_rec["normalized_timespan"] = True
|
||||
new_rec["normalized_timespan_parts"] = num_parts
|
||||
new_rec["normalized_timespan_part_index"] = part_index
|
||||
|
||||
new_rec["interval_begin"] = bucket["begin"].strftime("%Y-%m-%d %H:%M:%S")
|
||||
new_rec["interval_end"] = bucket["end"].strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
Reference in New Issue
Block a user