From 490560f31c20dd8191ee1a0f8f6e90b2820d7c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Kir=C3=B8?= Date: Tue, 22 Mar 2016 13:03:34 +0100 Subject: API structure change. --- web/nms.gathering.org/api/private/comments | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 web/nms.gathering.org/api/private/comments (limited to 'web/nms.gathering.org/api/private/comments') diff --git a/web/nms.gathering.org/api/private/comments b/web/nms.gathering.org/api/private/comments deleted file mode 100755 index 4adfb2b..0000000 --- a/web/nms.gathering.org/api/private/comments +++ /dev/null @@ -1,15 +0,0 @@ -#! /usr/bin/perl -# vim:ts=8:sw=8 - -use lib '../../../../include'; -use nms::web; -use strict; -use warnings; - -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; -} - -nms::web::finalize_output(); -- cgit v1.2.3