core: fix ranking

This commit is contained in:
undefined committed 2024-01-07 11:32:28 +08:00
1 parent 78b4bf37c8
commit ac1699665c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.10.3",
"version": "4.10.4",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
+1 -1
View File
@@ -64,7 +64,7 @@ class DomainRankHandler extends Handler {
100,
);
const udict = await user.getList(domainId, dudocs.map((dudoc) => dudoc.uid));
const udocs = Object.values(udict);
const udocs = dudocs.map((i) => udict[i.uid]);
this.response.template = 'ranking.html';
this.response.body = {
udocs, upcount, ucount, page,