Skip to content

Commit

Permalink
Default header-only to None
Browse files Browse the repository at this point in the history
This behavior is identical but None reads better than sys.maxsize
  • Loading branch information
dragonstyle committed Sep 5, 2024
1 parent 5dcaea2 commit c8924ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inspect_ai/_view/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def handle_log(self) -> None:
# read query parameters from the URL
query_params = parse_qs(parsed.query)
header_param = query_params.get("header-only", None)
header_only = int(header_param[0]) if header_param is not None else sys.maxsize
header_only = int(header_param[0]) if header_param is not None else None

# reconstruct the path
path = urlunparse(
Expand Down

0 comments on commit c8924ca

Please sign in to comment.