Fix graph timeline being backwards

This commit is contained in:
Lukáš Kucharczyk 2023-01-16 17:26:10 +01:00
parent a851b5329a
commit 2ce4dd3a0e
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
## Unreleased ## Unreleased
* Fixed * Fixed
* When filtering by game, the "Filtering by (...)" text would erroneously list an unrelated platform * When filtering by game, the "Filtering by (...)" text would erroneously list an unrelated platform
* Playtime graph would display timeline backwards
## 0.2.3 / 2023-01-15 23:13+01:00 ## 0.2.3 / 2023-01-15 23:13+01:00

View File

@ -74,7 +74,8 @@ def list_sessions(request, filter="", purchase_id="", platform_id="", game_id=""
context["total_duration"] = dataset.total_duration() context["total_duration"] = dataset.total_duration()
context["dataset"] = dataset context["dataset"] = dataset
context["chart"] = playtime_over_time_chart(dataset) # charts are always oldest->newest
context["chart"] = playtime_over_time_chart(dataset.order_by("timestamp_start"))
return render(request, "list_sessions.html", context) return render(request, "list_sessions.html", context)