|
|
@ -224,7 +224,7 @@ app.get('/contest/:id/submissions', async (req, res) => { |
|
|
|
let minScore = parseInt(req.query.min_score); |
|
|
|
let minScore = parseInt(req.query.min_score); |
|
|
|
if (isNaN(minScore)) minScore = 0; |
|
|
|
if (isNaN(minScore)) minScore = 0; |
|
|
|
let maxScore = parseInt(req.query.max_score); |
|
|
|
let maxScore = parseInt(req.query.max_score); |
|
|
|
if (isNaN(maxScore)) maxScore = 0; |
|
|
|
if (isNaN(maxScore)) maxScore = 100; |
|
|
|
|
|
|
|
|
|
|
|
where.score = { |
|
|
|
where.score = { |
|
|
|
$and: { |
|
|
|
$and: { |
|
|
|