Only query enabled gateways

master
Alice 8 years ago
parent 10b68595f9
commit fd2a1b5c64

@ -79,7 +79,7 @@ def current_active_sessions():
@APICache(initial=lambda: [])
def get_locations():
gateways = core_api.get('/gateways/')
gateways = core_api.get('/gateways/', enabled=True)
locations = {}
for gw in gateways.list_iter():

Loading…
Cancel
Save