From b97f1ade009887d1436dc558f1e3262a97a54d42 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 11 Apr 2006 21:30:34 +0000 Subject: Removed element for simplicity. --- tools/rrdui-cgi.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'tools/rrdui-cgi.py') diff --git a/tools/rrdui-cgi.py b/tools/rrdui-cgi.py index 282d428..175502e 100755 --- a/tools/rrdui-cgi.py +++ b/tools/rrdui-cgi.py @@ -82,12 +82,6 @@ def listGraphs(): graphs = loadGraphs() categories = {} - for item in graphs: - if not item.valid: - continue - if not categories.has_key(item.category): - categories[item.category] = [] - categories[item.category].append(item) groups = categories.keys() groups.sort() @@ -95,13 +89,9 @@ def listGraphs(): print "Content-Type: text/xml\n" print "" print "" - for group in groups: - print " " % group - categories[group].sort() - for item in categories[group]: - print " " % \ - (item.name, item.width, item.height, item.title, item.interval) - print " " + for item in graphs: + print " " % \ + (item.name, item.category, item.width, item.height, item.title, item.interval) print "" -- cgit v1.2.3