Skip to content

Commit

Permalink
Return a list in scanElementSourcesAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
RA80533 committed Jun 5, 2023
1 parent 2bc3776 commit 3742694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spiderfoot/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ def scanElementChildrenDirect(self, instanceId: str, elementIdList: typing.List[
except sqlite3.Error as e:
raise IOError("SQL error encountered when getting child element IDs") from e

def scanElementSourcesAll(self, instanceId: str, childData: typing.List[typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int]]) -> typing.Tuple[typing.Dict[str, typing.Union[typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int], typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int, str, str, str]]], typing.Dict[str, typing.List[str]]]:
def scanElementSourcesAll(self, instanceId: str, childData: typing.List[typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int]]) -> typing.List[typing.Union[typing.Dict[str, typing.Union[typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int], typing.Tuple[int, typing.Optional[str], typing.Optional[str], str, str, int, int, int, str, str, str, str, str, int, int, str, str, str]]], typing.Dict[str, typing.List[str]]]]:
"""Get the full set of upstream IDs which are parents to the supplied set of IDs.
Args:
Expand Down Expand Up @@ -1672,7 +1672,7 @@ def scanElementSourcesAll(self, instanceId: str, childData: typing.List[typing.T
assert row

datamap[parentId] = row
return (datamap, pc)
return [datamap, pc]

def scanElementChildrenAll(self, instanceId: str, parentIds: typing.List[str]) -> typing.List[str]:
"""Get the full set of downstream IDs which are children of the supplied set of IDs.
Expand Down

0 comments on commit 3742694

Please sign in to comment.