Skip to content

Commit

Permalink
update yara visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
drosetti committed May 6, 2024
1 parent 94188d1 commit de2a940
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions api_app/visualizers_manager/visualizers/yara.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def run(self) -> List[Dict]:
]
page1 = self.Page(name="Yara first page")
h1 = self.HList(value=[self._yara_analyzer()])
logger.debug(h1.to_dict())
page1.add_level(
self.Level(position=1, size=self.LevelSize.S_3, horizontal_list=h1)
)
Expand All @@ -67,17 +66,11 @@ def run(self) -> List[Dict]:
self._yara_signatures(signatures),
]
)
logger.debug(h2.to_dict())
page2 = self.Page(name="Yara second page")
page2.add_level(
self.Level(position=1, size=self.LevelSize.S_3, horizontal_list=h1)
)
page2.add_level(
page1.add_level(
self.Level(position=2, size=self.LevelSize.S_5, horizontal_list=h2)
)
logger.debug(page1)
logger.debug(page2)
return [page1.to_dict(), page2.to_dict()]
return [page1.to_dict()]

@classmethod
def _monkeypatch(cls):
Expand Down

0 comments on commit de2a940

Please sign in to comment.