diff options
author | Kristian Lyngstol <kly@kly.gondul.gathering.org> | 2019-01-03 17:42:03 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.gondul.gathering.org> | 2019-01-03 17:42:03 +0100 |
commit | de584bed994024371f89bce200298139f3615296 (patch) | |
tree | 9d06ab4ba5df08739901890f9aef685333db7f69 /web/api/public/switches | |
parent | 27fb87647ee68117f4ea13b470ad31b723bcdc69 (diff) |
First step to major cleanup
Fixes #150
Fixe #88
Closes #3
Probably lots of bugs introduced, will fix ASAP.
Diffstat (limited to 'web/api/public/switches')
-rwxr-xr-x | web/api/public/switches | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/web/api/public/switches b/web/api/public/switches index 8e7f333..9bb63d8 100755 --- a/web/api/public/switches +++ b/web/api/public/switches @@ -29,11 +29,4 @@ while (my $ref = $q2->fetchrow_hashref()) { $nms::web::json{'switches'}{$ref->{'sysname'}}{'tags'} = $data; } -my $q4 = $nms::web::dbh->prepare('select linknet, (select sysname from switches where switch = switch1) as sysname1, (select sysname from switches where switch = switch2) as sysname2 from linknets'); - -$q4->execute(); -while (my $ref = $q4->fetchrow_hashref()) { - $nms::web::json{'linknets'}{$ref->{'linknet'}} = $ref; -} - finalize_output(); |