judge: bug fix

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 511d08c850
commit 07ab4f1bbd
12 files changed
+111 -79

No files matched your search

+10
View File
@@ -167,6 +167,7 @@ export interface ProblemConfigFile {
cases?: TestCaseConfig[];
subtasks?: SubtaskConfig[];
langs?: string[];
validator?: string;
}
export interface ProblemConfig {
@@ -298,6 +299,15 @@ export interface RecordDoc {
contest?: ObjectID;
}
export interface JudgeRequest extends Omit<RecordDoc, '_id' | 'testCases'> {
priority: number;
type: 'judge';
rid: ObjectID;
config: ProblemConfigFile & { problemOwner: number };
data: FileInfo[];
source: string;
}
export interface ScoreboardNode {
type: 'string' | 'rank' | 'user' | 'email' | 'record' | 'records' | 'problem' | 'solved' | 'time' | 'total_score';
value: string;