diff --git a/oyster/templates/log_row.html b/oyster/templates/log_row.html index 62639cc..e9bef4b 100644 --- a/oyster/templates/log_row.html +++ b/oyster/templates/log_row.html @@ -1,6 +1,6 @@ {{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 56911b5..9fc3490 100644 --- a/oyster/web.py +++ b/oyster/web.py @@ -86,23 +86,12 @@ def tracked(): return json.dumps(tracked, cls=JSONEncoder) -@app.route('/tracked/') +@app.route('/tracked/') def tracked_view(url): url = _path_fixer(url) - doc = kernel.db.tracked.find_one({'url': url}) + doc = kernel.db.tracked.find_one({'_id': id}) return json.dumps(doc, cls=JSONEncoder) -@app.route('/doc//') -def show_doc(url, version): - url = _path_fixer(url) - if version == 'latest': - version = -1 - doc = kernel.get_version(url, version) - resp = flask.make_response(doc.read()) - resp.headers['content-type'] = doc.content_type - return resp - - if __name__ == '__main__': app.run(debug=True)