Skip to content
Snippets Groups Projects
Commit bc778441 authored by Robert Latta's avatar Robert Latta
Browse files

only include circuits marked as monitored

parent e48b476a
Branches
Tags
No related merge requests found
......@@ -222,7 +222,9 @@ def get_everything():
site = f'{d["pop_name"]} ({d["pop_abbreviation"]})'
eq_name = d['equipment']
if_name = d['port']
all_data[site][eq_name][if_name] = d['related-services']
all_data[site][eq_name][if_name] = \
[rs for rs in d['related-services']
if rs['status'] == 'operational']
result = json.dumps(all_data)
r.set(cache_key, result.encode('utf-8'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment