Skip to content

Commit 7ac4bf0

Browse files
Formatting changes
1 parent 55525c4 commit 7ac4bf0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

services/thing_helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ def get_db_things(
159159
type_sim = func.coalesce(func.similarity(Thing.thing_type, clean_query), 0)
160160

161161
name_word_sim = func.coalesce(func.word_similarity(Thing.name, clean_query), 0)
162-
type_word_sim = func.coalesce(func.word_similarity(Thing.thing_type, clean_query), 0)
162+
type_word_sim = func.coalesce(
163+
func.word_similarity(Thing.thing_type, clean_query), 0
164+
)
163165

164166
search_conditions = [
165167
Thing.search_vector.op("@@")(
@@ -200,7 +202,7 @@ def get_db_things(
200202
Contact.name.ilike(partial_query),
201203
]
202204
)
203-
205+
204206
rank_expressions.extend(
205207
[
206208
contact_sim,

0 commit comments

Comments
 (0)