prep things

This commit is contained in:
Alex
2023-03-27 19:29:10 +01:00
parent 658b14ba26
commit d5522e7c08
4 changed files with 27 additions and 6 deletions

View File

@@ -335,7 +335,7 @@ def upload_file():
os.makedirs(save_dir)
file.save(os.path.join(save_dir, filename))
task = ingest.delay('temp', [".rst", ".md", ".pdf"], job_name, filename, user)
task = ingest.delay('temp', [".rst", ".md", ".pdf", ".txt"], job_name, filename, user)
# task id
task_id = task.id
return {"status": 'ok', "task_id": task_id}