Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-murphy authored and thehappydinoa committed Jul 31, 2024
1 parent 2f70d7b commit b7cfdcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions censys/asm/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,18 @@ def search(
dict: Inventory search results.
"""
if workspaces is None:
w: List[str] = [self.get_workspace_id()]
workspaces = [self.get_workspace_id()]
else:
warnings.warn(
"The field 'workspaces' is being deprecated. The workspace associated with `CENSYS-API-KEY` will be used automatically.",
category=DeprecationWarning,
stacklevel=2,
)
w = workspaces
if page_size is None:
page_size = 50

args = {
"workspaces": w,
"workspaces": workspaces,
"pageSize": page_size,
}

Expand Down

0 comments on commit b7cfdcb

Please sign in to comment.