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