Update diagram
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 15s

This commit is contained in:
2024-03-03 02:10:58 +01:00
parent 325f753d31
commit 27e0231a25

View File

@ -475,13 +475,13 @@ class PointsModel(Model):
def cumulative_points_data(self) -> str:
data: Dict[Any, Any] = dict()
data["labels"] = [0] + [
data["labels"] = [
race.name for race in sorted(self.all_races(), key=lambda race: race.number)
]
data["datasets"] = [
{
"data": [0] + self.points_per_step_cumulative()[user.name],
"data": self.points_per_step_cumulative()[user.name],
"label": user.name,
"fill": False
}