From d87a702bfe44053bb3949b5bb4eba44471f6458a Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 21 Sep 2011 18:49:11 -0400 Subject: [PATCH] mongo_host on index --- oyster/templates/index.html | 1 + oyster/web.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/oyster/templates/index.html b/oyster/templates/index.html index 0501831..c12dd2a 100644 --- a/oyster/templates/index.html +++ b/oyster/templates/index.html @@ -12,6 +12,7 @@ oyster
Queue Size
{{queue_size}}
Tracking
{{tracking}}
Need Update
{{need_update}}
+
Mongo Host
{{mongo_host}}
diff --git a/oyster/web.py b/oyster/web.py index 5483546..337ea0a 100644 --- a/oyster/web.py +++ b/oyster/web.py @@ -6,6 +6,7 @@ import functools import flask import pymongo.objectid +from oyster.conf import settings from oyster.client import get_configured_client @@ -50,6 +51,7 @@ def index(): 'tracking': client.db.tracked.count(), 'need_update': client.get_update_queue_size(), 'logs': client.db.logs.find().sort('$natural', -1).limit(20) + 'mongo_host': settings.MONGO_HOST, } return status