mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
添加部分注释,修复一些功能
This commit is contained in:
1 parent
f40e4e2c74
commit
d3e36fcb6c
32 files changed
+320
-174
No files matched your search
@@ -55,7 +55,8 @@ async function reset(rid) {
|
||||
judgeTexts: [],
|
||||
compilerTexts: [],
|
||||
judgeAt: null,
|
||||
judger: null
|
||||
judger: null,
|
||||
rejudged: true
|
||||
});
|
||||
}
|
||||
async function count(query) {
|
||||
@@ -66,6 +67,9 @@ async function getList(rids) {
|
||||
for (let rid of rids) r[rid] = await get(rid);
|
||||
return r;
|
||||
}
|
||||
function getUserInProblemMulti(uid, pid) {
|
||||
return coll.find({ owner: uid, pid });
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
add,
|
||||
@@ -74,5 +78,6 @@ module.exports = {
|
||||
update,
|
||||
count,
|
||||
reset,
|
||||
getList
|
||||
getList,
|
||||
getUserInProblemMulti
|
||||
};
|
||||
Reference in new issue
Block a user