Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
📝 Add link parameter to create_pdf.py methods
Browse files Browse the repository at this point in the history
  • Loading branch information
NTGNguyen committed Feb 22, 2024
1 parent 0711a0b commit a72d505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/create_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def merge_jpg_to_pdf_book_link(book_directory: str, link: Link) -> None:
Args:
directory (str): The directory containing the subdirectories.
link (Link): The book's Link
"""
for link_page in link.files:
CreatePDF.merge_jpg_to_pdf_page_link_or_preview_link(os.path.join(book_directory, link_page.name), link_page)
Expand All @@ -50,6 +50,7 @@ def create_pdf(dowload_directory: str, links: list[Link]) -> None:
Ars:
directory (str): The directory containing the subdirectories.
links (list[Link]): list of Link
"""
for link in links:
if link.original_type == 'book':
Expand Down

0 comments on commit a72d505

Please sign in to comment.