Skip to content

Commit

Permalink
Fixed directory default for processing
Browse files Browse the repository at this point in the history
  • Loading branch information
christianlouis committed Feb 11, 2025
1 parent 0ebdd47 commit c2c1cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def process(file_path: str):

# If file_path is not absolute, treat it as relative to settings.workdir.
if not os.path.isabs(file_path):
file_path = os.path.join(settings.workdir, 'processed', file_path)
file_path = os.path.join(settings.workdir, file_path)

if not os.path.exists(file_path):
raise HTTPException(status_code=400, detail=f"File {file_path} not found.")
Expand Down

0 comments on commit c2c1cca

Please sign in to comment.