Skip to content

Commit

Permalink
articles: fix PDF reading from stream
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Oct 31, 2024
1 parent fb97fb9 commit d364429
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scoap3/articles/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def parse_string_to_date_object(date_string):
def is_string_in_pdf(article_file, search_string):
try:
pdf_file = article_file.file.read()
pdf_file.seek(0)
document = fitz.open(stream=pdf_file)
search_string_lower = search_string.lower()

Expand Down

0 comments on commit d364429

Please sign in to comment.