aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public/switches
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <msbone1995@gmail.com>2018-03-21 13:27:46 +0100
committerGitHub <noreply@github.com>2018-03-21 13:27:46 +0100
commit2b3beb9f93fc6486169e47f96995a97dd64baf2a (patch)
tree7151c023924254d863387f484829b503759359ea /web/api/public/switches
parent8f1eeeabe7b33d224ed9a8e19cc16825c144a0f6 (diff)
parent5abf053bac220b49539104bfa63805fd0829ca45 (diff)
Merge branch 'master' into network-firstclass
Diffstat (limited to 'web/api/public/switches')
-rwxr-xr-xweb/api/public/switches2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/public/switches b/web/api/public/switches
index 1492f1c..8e7f333 100755
--- a/web/api/public/switches
+++ b/web/api/public/switches
@@ -13,7 +13,7 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "5";
$nms::web::cc{'stale-while-revalidate'} = "30";
-my $q2 = $nms::web::dbh->prepare('select switch, sysname, tags, distro_name, placement, last_updated from switches where placement is not null');
+my $q2 = $nms::web::dbh->prepare('select switch, sysname, tags, distro_name, placement, last_updated from switches where placement is not null and deleted = false');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {