mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-01 01:46:16 +00:00
test cases for #67
This commit is contained in:
@@ -169,7 +169,9 @@ class Consumer(LoggingMixin):
|
||||
|
||||
# Afte performing all database operations and moving files
|
||||
# into place, tell paperless where the file is.
|
||||
document.filename = generate_filename(document)
|
||||
document.filename = os.path.basename(document.source_path)
|
||||
# Saving the document now will trigger the filename handling
|
||||
# logic.
|
||||
document.save()
|
||||
|
||||
# Delete the file only if it was successfully consumed
|
||||
|
Reference in New Issue
Block a user