From 3bf5f1db34f32d156730430fd4229747b1eb13b4 Mon Sep 17 00:00:00 2001 From: grokas Date: Mon, 9 Dec 2024 11:57:17 -0800 Subject: [PATCH] PAPP-35103 comments cleaning --- crowdstrikeoauthapi_connector.py | 1 + parse_cs_incidents.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crowdstrikeoauthapi_connector.py b/crowdstrikeoauthapi_connector.py index e5959f4..061877e 100644 --- a/crowdstrikeoauthapi_connector.py +++ b/crowdstrikeoauthapi_connector.py @@ -2761,6 +2761,7 @@ def _on_poll(self, param): if not self.is_poll_now(): try: + # Track timestamps to ensure ingesting new incidents last_ingestion_time = self._state.get("last_incident_timestamp", "") params["filter"] = f"modified_timestamp:>'{last_ingestion_time}'" except Exception as e: diff --git a/parse_cs_incidents.py b/parse_cs_incidents.py index fdf25de..4c560a2 100644 --- a/parse_cs_incidents.py +++ b/parse_cs_incidents.py @@ -128,7 +128,7 @@ def process_incidents(incidents): incident.get("start", "Unknown Time"), ) - # Set container properties + # Container properties container["description"] = incident.get("description", "No description available") container["source_data_identifier"] = incident.get("incident_id") container["severity"] = _get_incident_severity(incident.get("fine_score", 0))