Browse Source

Fix:HTTP API -> Stop parsing documents(AttributeError: ‘list‘ object … (#5375)

…has no attribute ‘id‘)

### What problem does this PR solve?

No PR

![image](https://github.com/user-attachments/assets/988d31bc-6551-4bb8-846c-cbbc1883d804)


![image](https://github.com/user-attachments/assets/8b09681b-1239-4ed9-8bc3-11436c5e90bc)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
tags/v0.17.0
k 8 months ago
parent
commit
5cab6c4ccb
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/apps/sdk/doc.py

+ 1
- 1
api/apps/sdk/doc.py View File

@@ -734,7 +734,7 @@ def stop_parsing(tenant_id, dataset_id):
)
info = {"run": "2", "progress": 0, "chunk_num": 0}
DocumentService.update_by_id(id, info)
settings.docStoreConn.delete({"doc_id": doc.id}, search.index_name(tenant_id), dataset_id)
settings.docStoreConn.delete({"doc_id": doc[0].id}, search.index_name(tenant_id), dataset_id)
return get_result()



Loading…
Cancel
Save