mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix value type
This commit is contained in:
1 parent
bfa162e55e
commit
d3542774d7
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.11.11",
|
"version": "3.11.12",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export class ContestScoreboardDownloadHandler extends Handler {
|
|||||||
async get(domainId: string, tid: ObjectID, ext: string, ignoreLock = false) {
|
async get(domainId: string, tid: ObjectID, ext: string, ignoreLock = false) {
|
||||||
await this.limitRate('scoreboard_download', 120, 3);
|
await this.limitRate('scoreboard_download', 120, 3);
|
||||||
const getContent = {
|
const getContent = {
|
||||||
csv: async (rows) => `\uFEFF${rows.map((c) => (c.map((i) => i.value?.replace(/\n/g, ' ')).join(','))).join('\n')}`,
|
csv: async (rows) => `\uFEFF${rows.map((c) => (c.map((i) => i.value?.toString().replace(/\n/g, ' ')).join(','))).join('\n')}`,
|
||||||
html: (rows, tdoc) => this.renderHTML('contest_scoreboard_download_html.html', { rows, tdoc }),
|
html: (rows, tdoc) => this.renderHTML('contest_scoreboard_download_html.html', { rows, tdoc }),
|
||||||
};
|
};
|
||||||
const tdoc = await contest.get(domainId, tid);
|
const tdoc = await contest.get(domainId, tid);
|
||||||
|
|||||||
Reference in new issue
Block a user