|
|
|
@ -38,7 +38,7 @@ app.get('/practice', async (req, res) => {
|
|
|
|
|
await userQuery.update(User).set({current_p_id: currentPId}).where("id = :id", { id:userId }).execute(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
test.push(resultItem.order); |
|
|
|
|
unFinishedIdArray.push(resultItem.order); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -64,8 +64,7 @@ app.get('/practice', async (req, res) => {
|
|
|
|
|
} |
|
|
|
|
res.render('practice', { |
|
|
|
|
user:res.locals.user, |
|
|
|
|
result, |
|
|
|
|
newRating |
|
|
|
|
result |
|
|
|
|
}) |
|
|
|
|
} catch (e) { |
|
|
|
|
syzoj.log(e); |
|
|
|
|