Skip to content

Commit df1fa3b

Browse files
committed
Add comment for parsing created_at and updated_at fields to metadata
1 parent 4d0294f commit df1fa3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

detection_rules/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def import_rules_into_repo( # noqa: PLR0912, PLR0913, PLR0915
247247
if isinstance(contents["author"], str):
248248
contents["author"] = [contents["author"]]
249249

250+
# Parse created_at and updated_at to creation_date and updated_date if they exist in contents
250251
if "created_at" in contents:
251252
try:
252253
contents["creation_date"] = datetime.strptime(

0 commit comments

Comments
 (0)