Skip to content

Commit

Permalink
switch to worlds.append(), credit to dAnjou
Browse files Browse the repository at this point in the history
  • Loading branch information
larkin committed Mar 28, 2013
1 parent 736c409 commit 3064653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_random_world():
worlds = []
for i in range(int(num_queries)):
wid = randint(1, 10000)
worlds[i] = World.query.get(wid)
worlds.append(World.query.get(wid))
return jsonify(worlds=worlds)

if __name__ == "__main__":
Expand Down

0 comments on commit 3064653

Please sign in to comment.