Browse Source

Display zero points submits as "submitted"

master
Standa Lukeš 2 months ago
parent
commit
c4f324f954
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      frontend/src/ksp-submit-api.ts
  2. +1
    -1
      server/Ksp.WebServer/appsettings.Development.json

+ 1
- 1
frontend/src/ksp-submit-api.ts View File

@@ -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 }])
)
}

+ 1
- 1
server/Ksp.WebServer/appsettings.Development.json View File

@@ -7,6 +7,6 @@
}
},
"KspProxyConfig": {
"Host": "https://ksp.mff.cuni.cz"
"Host": "https://ksp.mff.cuni.cz",
}
}

Loading…
Cancel
Save