MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / getCorrectCount

Function getCorrectCount

frontend/src/data/localDB/practiceSessions.ts:141–146  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

139}
140
141async function getCorrectCount(sessionId: string): Promise<number> {
142 return await db.practice_cards
143 .where({ sessionId })
144 .filter((card) => card.isCorrect === true)
145 .count()
146}
147
148async function updateSessionStatsAfterPractice(sessionId: string) {
149 const session = await db.practice_sessions.get(sessionId)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected