aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyblackbird_cc/resources/views.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py
index e95c676..c23efa9 100644
--- a/pyblackbird_cc/resources/views.py
+++ b/pyblackbird_cc/resources/views.py
@@ -147,16 +147,6 @@ def index(request):
return render(request, "resources/resource_list.html", context)
-def _write_pdf_to_tempdir(f) -> str:
- temp_dir = tempfile.mkdtemp()
- file_path = os.path.join(temp_dir, f.name)
-
- with open(file_path, "wb") as destination:
- for chunk in f.chunks():
- destination.write(chunk)
- return file_path
-
-
def create_metadata(pdf_files) -> Generator[tuple[services.PDFMetadata, str], None, None]:
"""
Generates PDF metadata and snapshot images for a list of PDF files.