diff --git a/oyster/templates/log_row.html b/oyster/templates/log_row.html index a2aac21..3300832 100644 --- a/oyster/templates/log_row.html +++ b/oyster/templates/log_row.html @@ -1,7 +1,7 @@ {{log.action}} - {{log.url}} + {{log.url}} {{log.timestamp.strftime("%Y-%m-%d %H:%M:%S")}} {% if log.error %}{{log.error}}{% endif %} diff --git a/oyster/web.py b/oyster/web.py index 494d644..42c7c26 100644 --- a/oyster/web.py +++ b/oyster/web.py @@ -85,9 +85,10 @@ def tracked(): return json.dumps(tracked, cls=JSONEncoder) -@app.route('/tracked/') -def tracked_view(id): - doc = client.db.tracked.find_one({'_id': id}) +@app.route('/tracked/') +def tracked_view(url): + url = _path_fixer(url) + doc = client.db.tracked.find_one({'url': url}) return json.dumps(doc, cls=JSONEncoder)