DEBUG - force flush 2nd try

This commit is contained in:
Fabian Koller committed 2021-01-30 12:50:49 +01:00
1 parent 063bfc245c
commit d9e06958dc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -381,9 +381,9 @@ class PostDocumentView(APIView):
with tempfile.NamedTemporaryFile(prefix="paperless-upload-",
dir=settings.SCRATCH_DIR,
buffering=0,
delete=False) as f:
f.write(doc_data)
f.flush()
os.utime(f.name, times=(t, t))
async_task("documents.tasks.consume_file",