moved around the order by statements so that it orders correctly
This commit is contained in:
parent
efe9e34669
commit
091468985e
@ -96,9 +96,9 @@ SELECT name, id, plays, public, server_id, uploader_id
|
|||||||
uploader_id = ? OR
|
uploader_id = ? OR
|
||||||
server_id = ?
|
server_id = ?
|
||||||
)
|
)
|
||||||
ORDER BY rand(), public = 1, server_id = ?, uploader_id = ?
|
ORDER BY uploader_id = ? DESC, server_id = ? DESC, public = 1 DESC, rand()
|
||||||
",
|
",
|
||||||
name, user_id, guild_id, guild_id, user_id
|
name, user_id, guild_id, user_id, guild_id
|
||||||
)
|
)
|
||||||
.fetch_all(&db_pool)
|
.fetch_all(&db_pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user