Order homepage sessions from newest
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4070b4e46e
commit
04a4f2e0be
|
@ -87,7 +87,7 @@ def list_sessions(request, filter="", purchase_id="", platform_id="", game_id=""
|
|||
elif filter == "recent":
|
||||
dataset = Session.objects.filter(
|
||||
timestamp_start__gte=datetime.now() - timedelta(days=30)
|
||||
)
|
||||
).order_by("-timestamp_start")
|
||||
context["title"] = "Last 30 days"
|
||||
else:
|
||||
# by default, sort from newest to oldest
|
||||
|
|
Loading…
Reference in New Issue