Skip to content

Commit 3742694

Browse files
committed
Return a list in scanElementSourcesAll()
1 parent 2bc3776 commit 3742694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spiderfoot/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ def scanElementChildrenDirect(self, instanceId: str, elementIdList: typing.List[
16001600
except sqlite3.Error as e:
16011601
raise IOError("SQL error encountered when getting child element IDs") from e
16021602

1603-
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]]]:
1603+
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]]]]:
16041604
"""Get the full set of upstream IDs which are parents to the supplied set of IDs.
16051605
16061606
Args:
@@ -1672,7 +1672,7 @@ def scanElementSourcesAll(self, instanceId: str, childData: typing.List[typing.T
16721672
assert row
16731673

16741674
datamap[parentId] = row
1675-
return (datamap, pc)
1675+
return [datamap, pc]
16761676

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

0 commit comments

Comments
 (0)