Skip to content

Commit

Permalink
Merge pull request #1784 from st1020/refactor/vul-details
Browse files Browse the repository at this point in the history
refactor: vul details api parse_graph
  • Loading branch information
st1020 authored Sep 6, 2023
2 parents 73854b4 + 401dfb1 commit 180188d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dongtai_web/views/vul_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def get_server(self):
"command": "",
}

@staticmethod
def parse_graphy(
self,
graphy,
extend_black_list: list | None = None,
extend_white_list: list | None = None,
Expand All @@ -136,7 +136,7 @@ def parse_graphy(

results = []
try:
if graphy is None:
if not graphy:
return results
method_note_pool = json.loads(graphy)[0]
method_counts = len(method_note_pool)
Expand Down

0 comments on commit 180188d

Please sign in to comment.