From 25bac8971f0a4ee6e5ee4cf8e687095bc450fb66 Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Fri, 23 Aug 2024 15:20:12 +0200 Subject: [PATCH] Use sketch_url instead of ID (#910) --- dftimewolf/lib/containers/containers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dftimewolf/lib/containers/containers.py b/dftimewolf/lib/containers/containers.py index 0260d049..1e74a117 100644 --- a/dftimewolf/lib/containers/containers.py +++ b/dftimewolf/lib/containers/containers.py @@ -862,7 +862,7 @@ class TimesketchQuery(TimesketchSavedSearch): minutes_before: Number of minutes to include before the date. minutes_after: Number of minutes to include after the date. results: The results of the query in a given sketch ID. - sketch_id: The sketch ID associated with the query. + sketch_url: URL to the sketch associated with the query results """ CONTAINER_TYPE = "timesketch_query" @@ -875,11 +875,11 @@ def __init__( date: Optional[datetime.datetime] = None, minutes_before: int = 5, minutes_after: int = 5, - sketch_id: int | None = None, + sketch_url: str | None = None, results: pandas.DataFrame | None = None, ): super().__init__( name, description, query, date, minutes_before, minutes_after ) - self.sketch_id = sketch_id + self.sketch_url = sketch_url self.results = results