From bbdd4c4b99e658d942a2de64303d98a2e380c899 Mon Sep 17 00:00:00 2001 From: Leonard Rapp Date: Tue, 3 Sep 2024 15:47:09 +0200 Subject: [PATCH] [FIX] Fix filter_events uri parameter order --- dfir_iris_client/case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfir_iris_client/case.py b/dfir_iris_client/case.py index 1cb2d66..f5a4bda 100644 --- a/dfir_iris_client/case.py +++ b/dfir_iris_client/case.py @@ -1278,7 +1278,7 @@ def filter_events(self, filter_str: dict = None, cid: int = None) -> ApiResponse filter_str = {} if filter_str is None else filter_str filter_uri = urllib.parse.quote(json.dumps(filter_str)) - return self._s.pi_get(f'case/timeline/advanced-filter?q={filter_uri}&', cid=cid) + return self._s.pi_get(f'case/timeline/advanced-filter?cid={cid}&q={filter_uri}') def add_event(self, title: str, date_time: datetime.datetime, content: str = None, raw_content: str = None, source: str = None, linked_assets: list = None, linked_iocs: list = None,