fix tracked_view

This commit is contained in:
James Turk 2012-05-10 00:42:15 -04:00
parent 8571042b05
commit 7537f344f8

View File

@ -86,9 +86,8 @@ def tracked():
return json.dumps(tracked, cls=JSONEncoder)
@app.route('/tracked/<path:id>')
def tracked_view(url):
url = _path_fixer(url)
@app.route('/tracked/<id>')
def tracked_view(id):
doc = kernel.db.tracked.find_one({'_id': id})
return json.dumps(doc, cls=JSONEncoder)