A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fixes issue where barcode containing files wouldn't be placed into the same directory after splitting
Trenton Holmes2a4ec13c8e16
diff --git a/src/documents/tasks.py b/src/documents/tasks.pyindex 0390129e2..35404587d 100644--- a/src/documents/tasks.py+++ b/src/documents/tasks.py@@ -87,6 +87,8 @@ def consume_file(override_created=None,):+ path = Path(path).resolve()+# check for separators in current documentif settings.CONSUMER_ENABLE_BARCODES:@@ -122,7 +124,11 @@ def consume_file(newname = f"{str(n)}_" + override_filenameelse:newname = None- barcodes.save_to_dir(document, newname=newname)+ barcodes.save_to_dir(+ document,+ newname=newname,+ target_dir=path.parent,+ )# if we got here, the document was successfully split# and can safely be deleted