1 Commits

Author SHA1 Message Date
6b7ed0dbb5 Order by timestamp_start from the newest
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 23:20:43 +01:00

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: