chore: refurish python code by applying Pylint linter rules (#8322)
This commit is contained in:
parent
1ab81b4972
commit
a1104ab97e
126 changed files with 253 additions and 272 deletions
|
|
@ -29,7 +29,7 @@ def recover_document_indexing_task(dataset_id: str, document_id: str):
|
|||
|
||||
try:
|
||||
indexing_runner = IndexingRunner()
|
||||
if document.indexing_status in ["waiting", "parsing", "cleaning"]:
|
||||
if document.indexing_status in {"waiting", "parsing", "cleaning"}:
|
||||
indexing_runner.run([document])
|
||||
elif document.indexing_status == "splitting":
|
||||
indexing_runner.run_in_splitting_status(document)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue