Skip to content

Commit

Permalink
Modify format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Nadares committed Mar 5, 2024
1 parent c573cf0 commit 3fa0bd9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions faraday_agent_dispatcher/static/executors/official/codeql.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,7 @@ def get_security_events():

def get_assets_to_create(vulnerability_tags: list, asset_tags: list) -> list:
security_events = get_security_events()
assets = list(
{
security_event["most_recent_instance"]["location"]["path"]
for security_event in security_events
}
)
assets = list({security_event["most_recent_instance"]["location"]["path"] for security_event in security_events})
assets_to_create = []

for asset in assets:
Expand All @@ -192,9 +187,7 @@ def get_assets_to_create(vulnerability_tags: list, asset_tags: list) -> list:
if security_event["most_recent_instance"]["location"]["path"] == asset:
security_event_obj = get_security_event_obj(security_event["number"])
if not security_event_obj:
print(
f"Could not get details of event with id {security_event['number']}"
)
print(f"Could not get details of event with id {security_event['number']}")
continue
vulnerability = {
"name": f"{security_event_obj.name}",
Expand Down

0 comments on commit 3fa0bd9

Please sign in to comment.