mongo_host on index

This commit is contained in:
James Turk 2011-09-21 18:49:11 -04:00
parent 4e860f7b44
commit d87a702bfe
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ oyster
<dt>Queue Size</dt><dd>{{queue_size}}</dd>
<dt>Tracking</dt><dd>{{tracking}}</dd>
<dt>Need Update</dt><dd>{{need_update}}</dd>
<dt>Mongo Host</dt><dd>{{mongo_host}}</dd>
</dl>
</div>

View File

@ -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