Skip to content

Commit

Permalink
changing name of property
Browse files Browse the repository at this point in the history
  • Loading branch information
dherincx92 committed Jul 13, 2024
1 parent 643ed1e commit f50c82e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fpds/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def search_params(self) -> str:
return " ".join(_params)

@property
def max_pages(self) -> int:
def page_count(self) -> int:
"""Total number of FPDS pages contained in request."""
return len(self.links)

Expand Down Expand Up @@ -146,8 +146,8 @@ def create_request_links(self) -> None:
self.links = links

if self.page:
if self.page > self.max_pages:
raise ValueError(f"Max response page count is {self.max_pages}!")
if self.page > self.page_count:
raise ValueError(f"Max response page count is {self.page_count}!")
self.links = [links[self.page_index()]]

@staticmethod
Expand Down

0 comments on commit f50c82e

Please sign in to comment.