mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Subjinfo fix round 3
This commit is contained in:
@@ -826,10 +826,11 @@ function GetApp() {
|
|||||||
return {
|
return {
|
||||||
subjects: data.length,
|
subjects: data.length,
|
||||||
questions: data.reduce((acc, subj) => {
|
questions: data.reduce((acc, subj) => {
|
||||||
return acc + subj.length
|
return acc + subj.Questions.length
|
||||||
}, 0),
|
}, 0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDetailedRes() {
|
function getDetailedRes() {
|
||||||
return data.map((subj) => {
|
return data.map((subj) => {
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user