Skip to content

Commit

Permalink
Fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
aturret committed Nov 21, 2024
1 parent 9953f34 commit fbb478f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/scrapers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
telegraph,
inoreader
)
from app.services.file_export import video_download
from app.services.file_export import video_download, document_export
from app.services.scrapers import twitter, wechat, reddit, weibo, zhihu, douban, instagram, xiaohongshu, threads

from app.database import save_instances
Expand Down Expand Up @@ -88,7 +88,7 @@ async def process_item(self, metadata_item: dict) -> dict:
):
logger.info("store in document")
try:
pdf_document = app.services.file_export.document_export.pdf_export.PdfExport(
pdf_document = document_export.pdf_export.PdfExport(
title=metadata_item["title"], html_string=metadata_item["content"]
)
output_filename = await pdf_document.export(method="file")
Expand Down

0 comments on commit fbb478f

Please sign in to comment.