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:
parent
32d99916ff
commit
72ff50ae80
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue