修复一处可能导致training状态异常的问题

This commit is contained in:
undefined committed 2020-09-04 22:31:59 +08:00
1 parent b5c1f41dd2
commit a1aeb521fe
11 files changed
+52 -37

No files matched your search

+16 -3
View File
@@ -31,7 +31,7 @@ export interface Udoc extends Dictionary<any> {
}
export interface User extends Dictionary<any> {
udoc: () => any,
udoc: () => Udoc,
dudoc: () => any,
_id: number,
mail: string,
@@ -211,6 +211,13 @@ export interface ScoreboardNode {
export type PenaltyRules = Dictionary<number>;
export interface TrainingNode {
_id: number,
title: string,
requireNids: number[],
pids: number[],
}
export interface Tdoc {
_id: ObjectID,
domainId: string,
@@ -230,7 +237,13 @@ export interface Tdoc {
penaltyRules?: PenaltyRules,
// For training
dag: any
description?: string,
dag?: TrainingNode[],
}
export interface TrainingDoc extends Tdoc {
description: string,
dag: TrainingNode[],
}
export interface DomainDoc extends Dictionary<any> {
@@ -365,7 +378,7 @@ export interface JudgeResultBody {
stderr?: string,
}
export type PathComponent = [string, string, any?, boolean?];
export type PathComponent = [string, string, Dictionary<any>?, boolean?];
export interface Model {
blacklist: typeof import('./model/blacklist'),