Skip to content

Commit

Permalink
little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ugomeguerditchian committed Aug 3, 2023
1 parent 9b21dff commit 1ef6894
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/AS_scan/orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def main(config: configuration, res: result, name: str, resume=False, recursive=
# Add the tool's result to the main result
if tool_res and hasattr(tool_res, "result"):
res.result.update(tool_res.result)
res.export(name)
if not recursive:
res.export(name)
res.metadata["last_tool"] = tool
else:
logger.error(
Expand All @@ -69,8 +69,9 @@ def main(config: configuration, res: result, name: str, resume=False, recursive=
tool_res = module.main(config=config, res=res)
if tool_res and hasattr(tool_res, "result"):
res.result.update(tool_res.result)
res.export(name)

if not recursive:
res.export(name)
res.metadata["last_tool"] = resume
tools_ls = []

for tool in tools.keys():
Expand All @@ -88,6 +89,6 @@ def main(config: configuration, res: result, name: str, resume=False, recursive=
tool_res = module.main(config=config, res=res, name=name)
if tool_res and hasattr(tool_res, "result"):
res.result.update(tool_res.result)
res.export(name)
if not recursive:
res.export(name)
res.metadata["last_tool"] = tool

0 comments on commit 1ef6894

Please sign in to comment.