From ccc5c98a14cf73fd32d6dd463b0738d18cfbd63b Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 25 Feb 2024 15:33:07 +0300 Subject: [PATCH] typo-fix --- services/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/db.py b/services/db.py index 80ff09e3..d0850fd8 100644 --- a/services/db.py +++ b/services/db.py @@ -122,7 +122,7 @@ if not author_fts_index_exists: with local_session() as session: session.bind.execute( """ - CREATE INDEX {index_name} ON authors + CREATE INDEX {index_name} ON author USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,''))); """.format(index_name=author_fts_index_name) )