You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix this issue all uses of string.format() in database.py's queries needs to be replaced with a parameterized cur.execute(query, (p1,p2))
good: self.cur.execute("UPDATE players SET dosh = ? WHERE username = ?",\ (player.total_dosh, player.username))
bad: self.cur.execute('SELECT (health_lost) FROM players WHERE username="{un}"'.\ format(un=username))
Line 68 of database.py causes a syntax error if the player name contains quotes.
The text was updated successfully, but these errors were encountered: