Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
isaak yansane-sisk
slapos
Commits
e4f776a6
Commit
e4f776a6
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
37b04b63
Changes
1
Show 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 @
e4f776a6
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
,
...
...
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