mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
better types & use attend instead of enroll
This commit is contained in:
1 parent
e7428c8f79
commit
3dd4c1c994
17 files changed
+141
-82
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
import {
|
||||
Rdoc, TestCase, Mdoc, Drrdoc,
|
||||
Rdoc, TestCase, Mdoc, Drrdoc, TrainingNode,
|
||||
} from 'hydrooj';
|
||||
import fs from 'fs';
|
||||
import os from 'os';
|
||||
@@ -126,12 +126,12 @@ const tasks = {
|
||||
},
|
||||
attend: 'attend',
|
||||
desc: 'description',
|
||||
enroll: 'enroll',
|
||||
enroll: 'attend',
|
||||
rated: 'rated',
|
||||
dag: {
|
||||
field: 'dag',
|
||||
processer: (dag) => {
|
||||
const r = [];
|
||||
const r: TrainingNode[] = [];
|
||||
for (const t of dag) {
|
||||
r.push({
|
||||
_id: t._id,
|
||||
|
||||
Reference in new issue
Block a user