From e4f776a6ae032da2c6d09e3df8c0408b6c9dbaa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com> Date: Wed, 16 Apr 2014 14:42:11 +0200 Subject: [PATCH] monitoring: Display recent status at the top of the rss feed --- stack/monitor/status2rss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack/monitor/status2rss.py b/stack/monitor/status2rss.py index a1e7f7f5c..2f82beee5 100644 --- a/stack/monitor/status2rss.py +++ b/stack/monitor/status2rss.py @@ -1,5 +1,4 @@ import datetime -import uuid import PyRSS2Gen import sys from email.utils import parsedate_tz, mktime_tz @@ -35,6 +34,7 @@ while 1: items.append(rss_item) ### Build the rss feed +items.reverse() rss_feed = PyRSS2Gen.RSS2 ( title = TITLE, link = LINK, @@ -43,4 +43,4 @@ rss_feed = PyRSS2Gen.RSS2 ( items = items ) -print rss_feed.to_xml() \ No newline at end of file +print rss_feed.to_xml() -- 2.30.9