forked from mirrors/thatmattlove-hyperglass
switched to hostnamed-based device identification, removed name key
This commit is contained in:
parent
b23b6e65c5
commit
7076feb727
2 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ def hyperglass_main():
|
|||
logger.debug("No input specified")
|
||||
return Response(config["messages"]["no_input"], codes["danger"])
|
||||
# Return error if no location is selected
|
||||
if lg_data["location"] not in configuration.locations():
|
||||
if lg_data["location"] not in configuration.hostnames():
|
||||
logger.debug("No selection specified")
|
||||
return Response(config["messages"]["no_location"], codes["danger"])
|
||||
# Return error if no query type is selected
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ $('#network').on('change', () => {
|
|||
|
||||
function updateRouters(locations) {
|
||||
locations.forEach(function(r) {
|
||||
$('#location').append($("<option>").attr('value', r.location).text(r.display_name))
|
||||
$('#location').append($("<option>").attr('value', r.hostname).text(r.display_name))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue