1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00
This commit is contained in:
Maxim Filippov 2019-03-20 01:40:50 +03:00
parent ed8a2935f5
commit 7ac9fff437

View file

@ -802,6 +802,7 @@ def search_for_admin(%{
search_query = from(u in maybe_local_query, where: ilike(u.nickname, ^"%#{term}%"))
count = search_query |> Repo.aggregate(:count, :id)
results =
search_query
|> paginate(page, page_size)