MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / getListStatus

Method getListStatus

packages/hydrooj/src/model/problem.ts:428–433  ·  view source on GitHub ↗
(domainId: string, uid: number, pids: number[])

Source from the content-addressed store, hash-verified

426 }
427
428 static async getListStatus(domainId: string, uid: number, pids: number[]) {
429 const psdocs = await ProblemModel.getMultiStatus(
430 domainId, { uid, docId: { $in: Array.from(new Set(pids)) } },
431 ).toArray();
432 return keyBy(psdocs, 'docId');
433 }
434
435 static async updateStatus(
436 domainId: string, pid: number, uid: number,

Callers 9

getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getHomeworkMethod · 0.45
getContestMethod · 0.45
getTrainingMethod · 0.45
getRecentProblemsMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls 1

getMultiStatusMethod · 0.80

Tested by

no test coverage detected