mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 07:01:36 +01:00
decrease retention time for live games
This commit is contained in:
@@ -135,7 +135,7 @@ class DatabaseConnection:
|
|||||||
|
|
||||||
cursor = self.connPlayers.cursor()
|
cursor = self.connPlayers.cursor()
|
||||||
cursor.execute('''SELECT * FROM live WHERE time > ? ORDER BY time DESC LIMIT 2''', (
|
cursor.execute('''SELECT * FROM live WHERE time > ? ORDER BY time DESC LIMIT 2''', (
|
||||||
(datetime.datetime.now() - datetime.timedelta(minutes=100)).timestamp(),))
|
(datetime.datetime.now() - datetime.timedelta(minutes=40)).timestamp(),))
|
||||||
|
|
||||||
liveRounds = []
|
liveRounds = []
|
||||||
for row in cursor:
|
for row in cursor:
|
||||||
|
|||||||
Reference in New Issue
Block a user