mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: optional files
This commit is contained in:
1 parent
2c1ce1593c
commit
7ca2881787
2 files changed
+4
-4
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.1.12",
|
"version": "3.1.13",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -480,9 +480,9 @@ export class ProblemFilesHandler extends ProblemDetailHandler {
|
|||||||
const links = {};
|
const links = {};
|
||||||
const size = Math.sum(
|
const size = Math.sum(
|
||||||
this.pdoc[type === 'testdata' ? 'data' : 'additional_file']
|
this.pdoc[type === 'testdata' ? 'data' : 'additional_file']
|
||||||
.filter((i) => files.has(i.name))
|
?.filter((i) => files.has(i.name))
|
||||||
.map((i) => i.size),
|
?.map((i) => i.size),
|
||||||
);
|
) || 0;
|
||||||
await oplog.add({
|
await oplog.add({
|
||||||
type: 'bulkDownload',
|
type: 'bulkDownload',
|
||||||
time: new Date(),
|
time: new Date(),
|
||||||
|
|||||||
Reference in new issue
Block a user