mirror of
				https://github.com/infiniflow/ragflow.git
				synced 2025-11-03 19:29:43 +00:00 
			
		
		
		
	Fix:HTTP API -> Stop parsing documents(AttributeError: ‘list‘ object … (#5375)
…has no attribute ‘id‘) ### What problem does this PR solve? No PR   ### 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):
This commit is contained in:
		
							parent
							
								
									b3b341173f
								
							
						
					
					
						commit
						5cab6c4ccb
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user