diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-09 12:04:53 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-09 12:04:53 (GMT) |
commit | 9a1faf90f43acffcb41f8aab310f19bd3b54c9bc (patch) | |
tree | f1c2b8115e157a535f08b4d38d3164428c69e632 /web | |
parent | e0e66852d5576558a860309dad3152cf61b1dd7c (diff) | |
download | site-9a1faf90f43acffcb41f8aab310f19bd3b54c9bc.tar.gz |
web/macros.py: Fix RSS <item>s
The <guid> and <pubDate> contents were swapped.
Diffstat (limited to 'web')
-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 eaaf7d9..5964c7b 100644 --- a/web/macros.py +++ b/web/macros.py | |||
@@ -47,7 +47,7 @@ def hook_postconvert_rss(): | |||
47 | desc = hx(p.html) | 47 | desc = hx(p.html) |
48 | date = time.mktime(time.strptime('%s 12' % p.date, '%Y-%m-%d %H')) | 48 | date = time.mktime(time.strptime('%s 12' % p.date, '%Y-%m-%d %H')) |
49 | date = email.utils.formatdate(date) | 49 | date = email.utils.formatdate(date) |
50 | items.append(_RSS_ITEM % (title, link, desc, date, link)) | 50 | items.append(_RSS_ITEM % (title, link, desc, link, date)) |
51 | items = ''.join(items) | 51 | items = ''.join(items) |
52 | title = 'Nagios Plugins' | 52 | title = 'Nagios Plugins' |
53 | link = '%s/news/index.html' % options.base_url.rstrip('/') | 53 | link = '%s/news/index.html' % options.base_url.rstrip('/') |