change user search limit from 20 to 5 (fix #7)

This commit is contained in:
2026-02-27 12:35:22 +01:00
parent 36727cdb24
commit 7887986a5a
+1 -1
View File
@@ -181,7 +181,7 @@ def _friends_page_data(search_query: str = ""):
WHERE u.id != ? WHERE u.id != ?
AND u.username LIKE ? AND u.username LIKE ?
ORDER BY u.username COLLATE NOCASE ASC ORDER BY u.username COLLATE NOCASE ASC
LIMIT 20 LIMIT 5
""", """,
(current_user.id, like_query), (current_user.id, like_query),
).fetchall() ).fetchall()