Revert "mongo wants ObjectIds"

This reverts commit 5b85dfa4e5.
This commit is contained in:
James Turk 2011-09-22 13:28:50 -04:00
parent 5b85dfa4e5
commit eefc74815e

View File

@ -87,7 +87,7 @@ def tracked():
@app.route('/tracked/<id>')
def tracked_view(id):
doc = client.db.tracked.find_one({'_id': pymongo.objectid.ObjectId(id)})
doc = client.db.tracked.find_one({'_id': id})
return json.dumps(doc, cls=JSONEncoder)