Dumb error, cursor.execute() doesn't handle single values.

This commit is contained in:
Admiral H. Curtiss
2014-05-26 02:24:55 +02:00
parent c936c819ce
commit 93fd74579b

View File

@@ -413,7 +413,7 @@ class StorageHTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
logger.log(logging.DEBUG, "SakeFileServer Download Request in game %s, user %s, file %s", gameid, playerid, fileid)
cursor = self.server.db.cursor()
cursor.execute('SELECT path FROM filepaths WHERE fileid = ?', (fileid))
cursor.execute('SELECT path FROM filepaths WHERE fileid = ?', (fileid,))
try:
filename = cursor.fetchone()[0]