Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
elyousfi5 committed Jun 12, 2024
1 parent 45e6be1 commit 203fd9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ostorlab/runtimes/local/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ class Network(Asset):

@staticmethod
def create(
networks: List[dict[str, int | str]], scan_id: Optional[int] = None
networks: List[Dict[str, Union[str, int]]], scan_id: Optional[int] = None
) -> "Network":
"""Persist the Network information in the database.
Expand Down
12 changes: 6 additions & 6 deletions src/ostorlab/serve_app/oxo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ def resolve_scans(
"""Resolve scans query.
Args:
info (graphql_base.ResolveInfo): GraphQL resolve info.
scan_ids (Optional[List[int]], optional): List of scan ids. Defaults to None.
page (int | None, optional): Page number. Defaults to None.
number_elements (int, optional): Number of elements. Defaults to DEFAULT_NUMBER_ELEMENTS.
order_by (Optional[types.OxoScanOrderByEnum], optional): Order by filter. Defaults to None.
sort (Optional[common.SortEnum], optional): Sort filter. Defaults to None.
info: GraphQL resolve info.
scan_ids: List of scan ids. Defaults to None.
page: Page number. Defaults to None.
number_elements: Number of elements. Defaults to DEFAULT_NUMBER_ELEMENTS.
order_by: Order by filter. Defaults to None.
sort: Sort filter. Defaults to None.
Returns:
Optional[types.OxoScansType]: List of scans.
Expand Down

0 comments on commit 203fd9b

Please sign in to comment.