Skip to content

Commit

Permalink
Fix parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Nov 16, 2023
1 parent 2b86769 commit 934c3f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archive_query_log/parse/url_offset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def parse_url_offset(parser: UrlOffsetParser, url: str) -> int | None:
return None

# Parse offset.
if parser.parser_type == "offset_parameter":
if parser.parser_type == "query_parameter":
if parser.parameter is None:
raise ValueError("No offset parameter given.")
offset_string = parse_url_query_parameter(parser.parameter, url)
Expand Down
2 changes: 1 addition & 1 deletion archive_query_log/parse/url_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def parse_url_page(parser: UrlPageParser, url: str) -> int | None:
return None

# Parse page.
if parser.parser_type == "page_parameter":
if parser.parser_type == "query_parameter":
if parser.parameter is None:
raise ValueError("No page parameter given.")
page_string = parse_url_query_parameter(parser.parameter, url)
Expand Down

0 comments on commit 934c3f6

Please sign in to comment.