summaryrefslogtreecommitdiff
path: root/watchnews/rss.py
diff options
context:
space:
mode:
Diffstat (limited to 'watchnews/rss.py')
-rw-r--r--watchnews/rss.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/watchnews/rss.py b/watchnews/rss.py
index 30510c2..4ffa810 100644
--- a/watchnews/rss.py
+++ b/watchnews/rss.py
@@ -7,7 +7,7 @@ from ll.xist.ns import xml, rss20
def rss():
- versions = data.Version.raw("""\
+ versions = data.Version.raw('''\
SELECT *
FROM version v
WHERE EXISTS (SELECT 1
@@ -16,7 +16,7 @@ WHERE EXISTS (SELECT 1
AND v2.item_id == v.item_id
AND v2.created_date < v.created_date)
ORDER BY v.created_date DESC
-LIMIT 30""")
+LIMIT 30''')
items = []
for to_version in versions:
@@ -28,14 +28,14 @@ LIMIT 30""")
.first()
difftable = Difftable(to_version, from_version,
- inline_style=True).string("utf-8")
+ inline_style=True).string('utf-8')
items.append(rss20.item(
rss20.title(
- "{} - {}".format(to_version.item.feed.title, to_version.title)),
+ '{} - {}'.format(to_version.item.feed.title, to_version.title)),
rss20.author(to_version.authors),
rss20.pubDate(to_version.created_date.strftime(
- "%a, %d %b %Y %T %z")),
- rss20.guid("from={},to={}".format(from_version.id, to_version.id)),
+ '%a, %d %b %Y %T %z')),
+ rss20.guid('from={},to={}'.format(from_version.id, to_version.id)),
rss20.link(to_version.url),
rss20.description(
xsc.Text(difftable)
@@ -43,8 +43,8 @@ LIMIT 30""")
))
return xsc.Frag(xml.XML(), rss20.rss(
rss20.channel(
- rss20.title("Watchnews change report"),
+ rss20.title('Watchnews change report'),
*items
)
)
- ).string("utf-8")
+ ).string('utf-8')