diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-15 21:08:44 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-15 21:08:44 (GMT) |
commit | 12fbb070908f69d9379be3d03a06eea041778c0d (patch) | |
tree | 81507ddbf16f6a4c31ecacd214e6cd54fb910f56 | |
parent | 771be0689fa6b1a6ba70344745ef6c0ec3bc3f53 (diff) | |
download | site-12fbb070908f69d9379be3d03a06eea041778c0d.tar.gz |
web/macros.py: Fix RSS <item>s (again)
The <guid> and <pubDate> contents were swapped again. (The same bug had
been fixed in an earlier commit and was then reintroduced by accident.)
-rw-r--r-- | web/macros.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/macros.py b/web/macros.py index f446378..309e0b4 100644 --- a/web/macros.py +++ b/web/macros.py | |||
@@ -60,7 +60,7 @@ def hook_postconvert_rss(): | |||
60 | desc = hx(p.html) | 60 | desc = hx(p.html) |
61 | date = time.mktime(time.strptime('%s 12' % p.date, '%Y-%m-%d %H')) | 61 | date = time.mktime(time.strptime('%s 12' % p.date, '%Y-%m-%d %H')) |
62 | date = email.utils.formatdate(date) | 62 | date = email.utils.formatdate(date) |
63 | items.append(_RSS_ITEM % (p.title, link, desc, date, link)) | 63 | items.append(_RSS_ITEM % (p.title, link, desc, link, date)) |
64 | items = ''.join(items) | 64 | items = ''.join(items) |
65 | title = 'Nagios Plugins' | 65 | title = 'Nagios Plugins' |
66 | link = '%s/news/' % site_url.rstrip('/') | 66 | link = '%s/news/' % site_url.rstrip('/') |