From 0f97b34aa06a35e86b1ef2836464628910e92794 Mon Sep 17 00:00:00 2001
From: Corbeau <p_dalibor@net.hr>
Date: Sun, 21 Aug 2022 22:23:45 +0200
Subject: [PATCH] Changing the order of games on the site

---
 main/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/models.py b/main/models.py
index a28344e..eeca020 100644
--- a/main/models.py
+++ b/main/models.py
@@ -16,7 +16,7 @@ def paths(request):
 def active_games(request):
 	mindate = datetime.datetime(datetime.MAXYEAR, 1, 1)
 	games = [ g for g in Game.objects.all() if g.has_ended() == False ]
-	games.sort(key=lambda x: x.date_started or mindate, reverse=True)
+	games.sort(key=lambda x: x.date_started or mindate, reverse=False)
 	for g in games:
 		if g.port:
 			g.to = int(round(time.time()))