Browse Source

verify Fixed bottle's db test

Mike Smith 11 years ago
parent
commit
ee3b603074
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bottle/app.py

+ 1 - 1
bottle/app.py

@@ -84,7 +84,7 @@ def get_random_world_single_raw():
     connection = db_engine.connect()
     wid = randint(1, 10000)
     result = connection.execute("SELECT * FROM world WHERE id = " + str(wid)).fetchone()
-    worlds = [{'id': result[0], 'randomNumber': result[1]}]
+    worlds = {'id': result[0], 'randomNumber': result[1]}
     connection.close()
     response.content_type = 'application/json'
     return json.dumps(worlds)