Skip to content

Commit

Permalink
Fix test attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Oct 9, 2023
1 parent 076be3e commit 743ede9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions timesketch/lib/analyzers/yetiindicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from flask import current_app
import requests
from typing import Dict, List

from timesketch.lib.analyzers import interface
from timesketch.lib.analyzers import manager
Expand Down Expand Up @@ -37,11 +38,11 @@ def __init__(self, index_name, sketch_id, timeline_id=None):
self.yeti_web_root = root.replace("/api/v2", "")
self.yeti_api_key = current_app.config.get("YETI_API_KEY")

def get_neighbors(self, yeti_object: dict) -> list[dict]:
def get_neighbors(self, yeti_object: Dict) -> List[Dict]:
"""Retrieves a list of neighbors associated to a given entity.
Args:
yeti_object (str): The Yeti object to get neighbors from.
yeti_object: The Yeti object to get neighbors from.
Returns:
A list of JSON objects describing a Yeti entity.
Expand Down Expand Up @@ -85,9 +86,9 @@ def get_indicators(self, indicator_type: str) -> None:
self.intel[_id] = indicator

def mark_event(self,
indicator: dict,
indicator: Dict,
event: interface.Event,
neighbors: list[dict]):
neighbors: List[Dict]):
"""Annotate an event with data from indicators and neighbors.
Tags with skull emoji, adds a comment to the event.
Expand Down Expand Up @@ -171,7 +172,7 @@ def run(self):

if not total_matches:
self.output.result_status = "SUCCESS"
self.output.result_priority = "NORMAL"
self.output.result_priority = "NOTE"
note = "No indicators were found in the timeline."
self.output.result_summary = note
return str(self.output)
Expand Down

0 comments on commit 743ede9

Please sign in to comment.