From 96ccea0f1ebd773ed70e92d06bc24c5045d038c0 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 2 Aug 2011 14:04:41 -0400 Subject: [PATCH] tracked JSON view --- oyster/web.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oyster/web.py b/oyster/web.py index ee89838..cd7023e 100644 --- a/oyster/web.py +++ b/oyster/web.py @@ -36,6 +36,11 @@ def log_view(): return flask.render_template('logs.html', logs=logs) +@app.route('/tracked/') +def tracked(): + tracked = list(client.db.tracked.find()) + return json.dumps(tracked, cls=JSONEncoder) + @app.route('/tracked/') def tracked_view(url): doc = client.db.tracked.find_one({'url': url})