|
|
@ -92,7 +92,6 @@ app.apiRouter.post('/api/v2/judge/peek', async (req, res) => { |
|
|
|
let judge_state, custom_test; |
|
|
|
let judge_state, custom_test; |
|
|
|
await syzoj.utils.lock('/api/v2/judge/peek', async () => { |
|
|
|
await syzoj.utils.lock('/api/v2/judge/peek', async () => { |
|
|
|
let waiting_judge = await WaitingJudge.findOne({ order: [['priority', 'ASC'], ['id', 'ASC']] }); |
|
|
|
let waiting_judge = await WaitingJudge.findOne({ order: [['priority', 'ASC'], ['id', 'ASC']] }); |
|
|
|
console.log(waiting_judge); |
|
|
|
|
|
|
|
if (!waiting_judge) { |
|
|
|
if (!waiting_judge) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|