Skip to content

Commit

Permalink
Aftral[premieroctet#111]: added missing fields for eval resources in …
Browse files Browse the repository at this point in the history
…statistics
  • Loading branch information
SeghirOumo committed Sep 4, 2024
1 parent fcfb90f commit 4fce85a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/web/server/plugins/aftral-lms/program.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ const getEvalResources = async (userId, params, data, fields) => {
let resources = await loadFromDb({
model: `resource`,
user,
fields: [...fields, `note`, `scale`, `homework_mode`],
fields: [...fields, `note`, `scale`, `homework_mode`, `resource_type`, `name`, `success_note_max`, `max_attempts`, `homeworks`],
params: newParams
})
})

resources = resources.filter(r =>
r.homework_mode == true || (r.note !== undefined && r.note !== null) || (r.scale !== undefined && r.scale !== null)
Expand Down

0 comments on commit 4fce85a

Please sign in to comment.