diff options
author | jomo <github@jomo.tv> | 2015-01-08 00:38:00 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-01-08 00:38:00 +0100 |
commit | 4f3cd5ba630e1918113959fb349e78d1753ca1df (patch) | |
tree | d1cb924a47d5606c894fc58638efd16cb2bcf0dc /check.py | |
parent | ae261d3026207586c0a2043aca87aca122c047cc (diff) |
possible fix for #8
Diffstat (limited to 'check.py')
-rw-r--r-- | check.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |