From cbf9d0f12553142900b5e3fa4ebb2038a2c9d361 Mon Sep 17 00:00:00 2001 From: Sebastian Loose Date: Tue, 19 Nov 2024 12:29:21 +0100 Subject: [PATCH] Format code --- app/vector_database/lecture_schema.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/vector_database/lecture_schema.py b/app/vector_database/lecture_schema.py index e90208ed..8c8d62c4 100644 --- a/app/vector_database/lecture_schema.py +++ b/app/vector_database/lecture_schema.py @@ -31,14 +31,17 @@ def init_lecture_schema(client: WeaviateClient) -> Collection: """ if client.collections.exists(LectureSchema.COLLECTION_NAME.value): collection = client.collections.get(LectureSchema.COLLECTION_NAME.value) - if not any((property.name == "course_language") for property in collection.config.get(simple=False).properties): + if not any( + (property.name == "course_language") + for property in collection.config.get(simple=False).properties + ): collection.config.add_property( - Property( - name=LectureSchema.COURSE_LANGUAGE.value, - description="The language of the COURSE", - data_type=DataType.TEXT, - index_searchable=False, - ) + Property( + name=LectureSchema.COURSE_LANGUAGE.value, + description="The language of the COURSE", + data_type=DataType.TEXT, + index_searchable=False, + ) ) return collection