summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-09 20:40:10 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-09 20:40:10 +0100
commitdb940cdd6ee276b2243cf87a45cce012725e4f1d (patch)
tree3606e6e61f4b15516f2abcee1133b00b85de1b93 /check.py
parent65352519c7ec055a69247c75e48530be8d4277ae (diff)
possible fix
Diffstat (limited to 'check.py')
-rw-r--r--check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.py b/check.py
index 7d0bb05..de3e3ec 100644
--- a/check.py
+++ b/check.py
@@ -35,7 +35,7 @@ def get_website_data(player):
conn = zxJDBC.connect(mysql_database, mysql_user, mysql_pass, "com.mysql.jdbc.Driver")
curs = conn.cursor()
uuid = str(uid(player)).replace("-", "")
- curs.execute("SELECT DISTINCT `id`, `email` FROM users WHERE `uuid` = ? LIMIT 1", [uuid])
+ curs.execute("SELECT DISTINCT `id`, `email` FROM users WHERE `uuid` = (%s) LIMIT 1", (uuid,))
results = curs.fetchall()
curs.close()
conn.close()