Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
8c5ad949
Commit
8c5ad949
authored
Apr 16, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitoring: Display recent status at the top of the rss feed
parent
6b10453c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stack/monitor/status2rss.py
stack/monitor/status2rss.py
+2
-2
No files found.
stack/monitor/status2rss.py
View file @
8c5ad949
import
datetime
import
datetime
import
uuid
import
PyRSS2Gen
import
PyRSS2Gen
import
sys
import
sys
from
email.utils
import
parsedate_tz
,
mktime_tz
from
email.utils
import
parsedate_tz
,
mktime_tz
...
@@ -35,6 +34,7 @@ while 1:
...
@@ -35,6 +34,7 @@ while 1:
items
.
append
(
rss_item
)
items
.
append
(
rss_item
)
### Build the rss feed
### Build the rss feed
items
.
reverse
()
rss_feed
=
PyRSS2Gen
.
RSS2
(
rss_feed
=
PyRSS2Gen
.
RSS2
(
title
=
TITLE
,
title
=
TITLE
,
link
=
LINK
,
link
=
LINK
,
...
@@ -43,4 +43,4 @@ rss_feed = PyRSS2Gen.RSS2 (
...
@@ -43,4 +43,4 @@ rss_feed = PyRSS2Gen.RSS2 (
items
=
items
items
=
items
)
)
print
rss_feed
.
to_xml
()
print
rss_feed
.
to_xml
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment