UPDATE: increased number of search results to 4

This commit is contained in:
white
2025-03-05 15:47:28 +00:00
parent e9599e7b68
commit 9c89999ca9

View File

@@ -26,7 +26,7 @@ def search_results():
INNER JOIN category_fts AS f ON c.category_id = f.category_id INNER JOIN category_fts AS f ON c.category_id = f.category_id
WHERE f.category_name LIKE '%' || ? || '%' WHERE f.category_name LIKE '%' || ? || '%'
ORDER BY score ASC ORDER BY score ASC
LIMIT 3; LIMIT 4;
""", (query,)) """, (query,))
# 3 users # 3 users
@@ -36,7 +36,7 @@ def search_results():
INNER JOIN user_fts AS f ON u.user_id = f.user_id INNER JOIN user_fts AS f ON u.user_id = f.user_id
WHERE f.username LIKE '%' || ? || '%' WHERE f.username LIKE '%' || ? || '%'
ORDER BY score ASC ORDER BY score ASC
LIMIT 3; LIMIT 4;
""", (query,)) """, (query,))
# 3 streams # 3 streams
@@ -48,7 +48,7 @@ def search_results():
INNER JOIN categories AS c ON s.category_id = c.category_id INNER JOIN categories AS c ON s.category_id = c.category_id
WHERE f.title LIKE '%' || ? || '%' WHERE f.title LIKE '%' || ? || '%'
ORDER BY score ASC ORDER BY score ASC
LIMIT 3; LIMIT 4;
""", (query,)) """, (query,))
db.close_connection() db.close_connection()