Skip to content

Commit

Permalink
TWeaks
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jul 23, 2024
1 parent ccdff15 commit 696a332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions newshomepages/extract/hyperlinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def hyperlinks(
output_path: typing.Optional[typing.Any] = None,
):
"""Download and parse the provided site's hyperlinks files."""
# Get all lighthouse files
hyperlink_df = utils.get_hyperlink_df().sort_values(["handle", "date"])
# Get all hyperlink files
hyperlink_df = utils.get_hyperlink_df(verbose=True).sort_values(["handle", "date"])

# Get the data we want
if site:
Expand Down
4 changes: 2 additions & 2 deletions newshomepages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,12 @@ def get_hyperlink_list() -> list[dict[str, typing.Any]]:
return get_hyperlink_df().to_dict(orient="records")


def get_hyperlink_df() -> pd.DataFrame:
def get_hyperlink_df(verbose: bool = False) -> pd.DataFrame:
"""Get the full list of hyperlink files from our extracts.
Returns a DataFrame.
"""
return _get_extract_files_df("hyperlink-files.csv")
return _get_extract_files_df("hyperlink-files.csv", verbose=verbose)


def get_lighthouse_list() -> list[dict[str, typing.Any]]:
Expand Down

0 comments on commit 696a332

Please sign in to comment.