mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 15:11:35 +01:00
correctly handle player not found case in db
This commit is contained in:
@@ -41,7 +41,7 @@ def findPlayerByName(database, playerName):
|
||||
row = cursor.fetchone()
|
||||
|
||||
playerRow = None
|
||||
if row:
|
||||
if not playerRow:
|
||||
cursor.execute("SELECT * FROM players WHERE name LIKE ?", (playerNamePrepared,))
|
||||
playerRow = cursor.fetchone()
|
||||
if not playerRow:
|
||||
|
||||
Reference in New Issue
Block a user