From 69d2ee3c6d9021f54550790edfada2438c3f1051 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sat, 28 Sep 2024 19:17:46 +0400 Subject: [PATCH] (WIP) Animal Crossing: Wild World route --- project/gamestats_database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/gamestats_database.py b/project/gamestats_database.py index 60cb0fc..e675802 100644 --- a/project/gamestats_database.py +++ b/project/gamestats_database.py @@ -249,7 +249,8 @@ def root_download(self, gamename, pid, region): with closing(self.conn.cursor()) as cursor: cursor.execute( "SELECT * FROM storage" - " WHERE gamename = ? AND pid = ? AND region = ?", + " WHERE gamename = ? AND pid != ? AND region = ?" + " ORDER BY RANDOM() LIMIT 1", (gamename, pid, region) ) return cursor.fetchone()