fix: hotfix the file uploader in the delete router. (#842)
<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
parent
7eee769251
commit
94c785d231
1 changed files with 2 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ def get_delete_router() -> APIRouter:
|
||||||
)
|
)
|
||||||
results.append(result)
|
results.append(result)
|
||||||
else:
|
else:
|
||||||
# Handle uploaded file
|
# Handle uploaded file by accessing its file attribute
|
||||||
result = await cognee_delete(file, dataset_name=dataset_name, mode=mode)
|
result = await cognee_delete(file.file, dataset_name=dataset_name, mode=mode)
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
||||||
if len(results) == 1:
|
if len(results) == 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue