Index Tool for Search #107

Merged
zuul merged 17 commits from index_search into main 2023-06-27 07:57:26 +00:00
3 changed files with 140 additions and 5 deletions
Showing only changes of commit 2ed3bc4bf5 - Show all commits

View File

@ -143,7 +143,9 @@ class Services(object):
"type": doc["type"], "type": doc["type"],
"title": doc["title"] "title": doc["title"]
} }
type_exists = any(doc_dict["type"] == new_doc["type"] for doc_dict in docs) type_exists = any(
doc_dict["type"] == new_doc["type"] for doc_dict in docs
)
if not type_exists: if not type_exists:
docs.append(new_doc) docs.append(new_doc)