diff --git a/CHANGELOG.md b/CHANGELOG.md index 62dbb94..20f94b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ ## Unreleased * 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 diff --git a/src/web/tracker/views.py b/src/web/tracker/views.py index ddf85f1..ca4d85a 100644 --- a/src/web/tracker/views.py +++ b/src/web/tracker/views.py @@ -74,7 +74,8 @@ def list_sessions(request, filter="", purchase_id="", platform_id="", game_id="" context["total_duration"] = dataset.total_duration() 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)