admin the second lol
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 18s

This commit is contained in:
Flummi
2024-06-24 08:41:46 +02:00
parent c79cca18cf
commit 058fe94fd1
6 changed files with 12 additions and 10 deletions

View File

@ -8,13 +8,13 @@ export default (router, tpl) => {
try {
const list = await db`
select
"user".user,
"user".user, "user".admin,
coalesce("user_options".avatar, ${await lib.getDefaultAvatar()}) as avatar,
count(distinct(tag_id, item_id)) as count
from "tags_assign"
left join "user" on "user".id = "tags_assign".user_id
left join "user_options" on "user_options".user_id = "user".id
group by "user".user, "user_options".avatar
group by "user".user, "user_options".avatar, "user".admin
order by count desc
`;
const stats = await lib.countf0cks();