From a72d5055f39c4ca3c1af4a35f6f22a6d67e58d4c Mon Sep 17 00:00:00 2001 From: NTGNguyen <23521049@gm.uit.edu.vn> Date: Thu, 22 Feb 2024 23:10:44 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20link=20parameter=20to=20cr?= =?UTF-8?q?eate=5Fpdf.py=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/create_pdf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/create_pdf.py b/src/modules/create_pdf.py index 423ef3e..f37069f 100644 --- a/src/modules/create_pdf.py +++ b/src/modules/create_pdf.py @@ -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) @@ -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':