mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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",
|
||||
"version": "3.1.12",
|
||||
"version": "3.1.13",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -480,9 +480,9 @@ export class ProblemFilesHandler extends ProblemDetailHandler {
|
||||
const links = {};
|
||||
const size = Math.sum(
|
||||
this.pdoc[type === 'testdata' ? 'data' : 'additional_file']
|
||||
.filter((i) => files.has(i.name))
|
||||
.map((i) => i.size),
|
||||
);
|
||||
?.filter((i) => files.has(i.name))
|
||||
?.map((i) => i.size),
|
||||
) || 0;
|
||||
await oplog.add({
|
||||
type: 'bulkDownload',
|
||||
time: new Date(),
|
||||
|
||||
Reference in new issue
Block a user