aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/comment.pl
diff options
context:
space:
mode:
Diffstat (limited to 'web/nms.gathering.org/comment.pl')
-rwxr-xr-xweb/nms.gathering.org/comment.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/nms.gathering.org/comment.pl b/web/nms.gathering.org/comment.pl
index d22dcdc..7a45d76 100755
--- a/web/nms.gathering.org/comment.pl
+++ b/web/nms.gathering.org/comment.pl
@@ -5,9 +5,8 @@ use lib '../../include';
use nms::web;
use strict;
use warnings;
-use Data::Dumper;
-my $query = $nms::web::dbh->prepare('select sysname,extract(epoch from date_trunc(\'second\',time)) as time,state,username,id,comment from switch_comments natural join switches where state != \'delete\' order by time desc limit 1');
+my $query = $nms::web::dbh->prepare('select sysname,extract(epoch from date_trunc(\'second\',time)) as time,state,username,id,comment from switch_comments natural join switches where state != \'delete\' order by time desc');
$query->execute();
while (my $ref = $query->fetchrow_hashref()) {
push @{$nms::web::json{'comments'}{$ref->{'sysname'}}{'comments'}},$ref;