Order by timestamp_start from the newest
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-15 23:20:43 +01:00
parent dd50d6dd40
commit 6b7ed0dbb5
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def list_sessions(request, filter="", purchase_id="", platform_id="", game_id=""
dataset = Session.objects.filter(purchase__game=game_id)
context["game"] = Platform.objects.get(id=game_id)
else:
dataset = Session.objects.all().order_by("timestamp_start")
dataset = Session.objects.all().order_by("-timestamp_start")
for session in dataset:
if session.timestamp_end == None and session.duration_manual.seconds == 0: