Skip to content

Commit

Permalink
Fix destination file name
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 21, 2022
1 parent 22fb5b6 commit 2363532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scan_to_paperless/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def process_code() -> None:
"""Detect ad add a page with the QR codes."""
for pdf_filename in glob.glob(os.path.join(os.environ.get("SCAN_CODES_FOLDER", "/scan-codes"), "*.pdf")):
destination_filename = os.path.join(
os.environ.get("SCAN_FINAL_FOLDER", "/final"), os.path.basename(pdf_filename)
os.environ.get("SCAN_FINAL_FOLDER", "/destination"), os.path.basename(pdf_filename)
)

if os.path.exists(destination_filename):
Expand Down

0 comments on commit 2363532

Please # to comment.