updated to allow config of the new server
This commit is contained in:
@@ -217,10 +217,13 @@ def _register_context_processors(app):
|
||||
try:
|
||||
with get_db().get_session() as session:
|
||||
pending_wmt_count = session.query(WMTUpdateRequest).filter_by(status='pending').count()
|
||||
unconfigured_count = session.query(WMTUpdateRequest).filter_by(status='to_be_configured').count()
|
||||
except Exception:
|
||||
pending_wmt_count = 0
|
||||
unconfigured_count = 0
|
||||
return {
|
||||
'app_name': 'Enhanced Server Monitoring',
|
||||
'app_version': '2.0.0',
|
||||
'pending_wmt_count': pending_wmt_count,
|
||||
'unconfigured_count': unconfigured_count,
|
||||
}
|
||||
Reference in New Issue
Block a user