fix tracked_view
This commit is contained in:
parent
8571042b05
commit
7537f344f8
@ -86,9 +86,8 @@ def tracked():
|
|||||||
return json.dumps(tracked, cls=JSONEncoder)
|
return json.dumps(tracked, cls=JSONEncoder)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/tracked/<path:id>')
|
@app.route('/tracked/<id>')
|
||||||
def tracked_view(url):
|
def tracked_view(id):
|
||||||
url = _path_fixer(url)
|
|
||||||
doc = kernel.db.tracked.find_one({'_id': id})
|
doc = kernel.db.tracked.find_one({'_id': id})
|
||||||
return json.dumps(doc, cls=JSONEncoder)
|
return json.dumps(doc, cls=JSONEncoder)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user