Vivek0912 commited on
Commit
4026982
·
1 Parent(s): f2e700b

added slash

Browse files
backend/app/api/endpoints.py CHANGED
@@ -58,7 +58,7 @@ async def process_email_files(files: List[UploadFile] = File(...)):
58
  async def process_email_directory():
59
  """Processes email files from a directory specified in an environment variable."""
60
  # directory_path = settings.settings.directory_path
61
- directory_path = Path("tmp/emails")
62
 
63
  if not directory_path:
64
  raise HTTPException(status_code=400, detail="EMAIL_DIRECTORY_PATH environment variable not set.")
 
58
  async def process_email_directory():
59
  """Processes email files from a directory specified in an environment variable."""
60
  # directory_path = settings.settings.directory_path
61
+ directory_path = Path("/tmp/emails")
62
 
63
  if not directory_path:
64
  raise HTTPException(status_code=400, detail="EMAIL_DIRECTORY_PATH environment variable not set.")
backend/app/services/retrieve_email_process.py CHANGED
@@ -131,7 +131,7 @@ def load_priority_rules() -> dict:
131
  """
132
  # Get the rules directory and filename from environment variables
133
  RULES_FILENAME = settings.settings.ALLOWED_PRIORITY_RULES_FILENAME
134
- RULES_DIR = Path("tmp/attachments")
135
  # Build the full file path using pathlib
136
  RULES_FILE_PATH = Path(RULES_DIR) / RULES_FILENAME
137
 
 
131
  """
132
  # Get the rules directory and filename from environment variables
133
  RULES_FILENAME = settings.settings.ALLOWED_PRIORITY_RULES_FILENAME
134
+ RULES_DIR = Path("/tmp/attachments")
135
  # Build the full file path using pathlib
136
  RULES_FILE_PATH = Path(RULES_DIR) / RULES_FILENAME
137