fix random & search

This commit is contained in:
Flummi
2022-05-06 17:29:55 +02:00
parent f5737e6f49
commit 155d496592
7 changed files with 19 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ export default (router, tpl) => {
select count(*) as total
from "items"
where src ilike ${'%' + tag.substring(4) + '%'}
group by "items".id, "tags".tag
group by "items".id
`).length;
}
else {
@@ -41,7 +41,8 @@ export default (router, tpl) => {
select *
from "items"
where src ilike ${'%' + tag.substring(4) + '%'}
group by "items".id, "tags".tag
group by "items".id
order by "items".id desc
offset ${offset}
limit ${_eps}
`;