Commit e4f776a6 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

monitoring: Display recent status at the top of the rss feed

parent 37b04b63
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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment