Display zero points submits as "submitted"
This commit is contained in:
parent
e2b6bdc319
commit
92c108d6af
2 changed files with 3 additions and 2 deletions
|
@ -107,6 +107,6 @@ export async function grabTaskSummary(): Promise<Map<string, TaskStatus>> {
|
|||
}
|
||||
|
||||
return new Map<string, TaskStatus>(
|
||||
results.tasks.map(r => [mapId(r.id), { id: mapId(r.id), maxPoints: r.max_points, name: r.name, points: r.points, solved: r.points > r.max_points - 0.001, submitted: r.points > 0 }])
|
||||
results.tasks.map(r => [mapId(r.id), { id: mapId(r.id), maxPoints: r.max_points, name: r.name, points: r.points ?? 0, solved: r.points > r.max_points - 0.001, submitted: r.points != null }])
|
||||
)
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
}
|
||||
},
|
||||
"KspProxyConfig": {
|
||||
"Host": "https://ksp.mff.cuni.cz"
|
||||
"Host": "https://ksp-test.ks.matfyz.cz",
|
||||
"Authorization": "Basic aHJvY2g6YXV0b2J1czExMg=="
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue