Browse Source

Fix judge reversed order

pull/6/head
Menci 7 years ago
parent
commit
5e259450a3
  1. 2
      modules/api_v2.js

2
modules/api_v2.js

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

Loading…
Cancel
Save