]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Small tweak to use the existing tempdir instead of a new one 2302/head
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 3 Jan 2023 21:05:44 +0000 (13:05 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 3 Jan 2023 21:05:44 +0000 (13:05 -0800)
src/paperless_tesseract/parsers.py

index 8e0bac5a776f9e0008da25ba86f43a7977ac90f5..14068cb26651f4bf96909f605b14cce455adb1d7 100644 (file)
@@ -142,7 +142,7 @@ class RasterisedDocumentParser(DocumentParser):
             text = None
             with tempfile.NamedTemporaryFile(
                 mode="w+",
-                dir=settings.SCRATCH_DIR,
+                dir=self.tempdir,
             ) as tmp:
                 subprocess.run(
                     [