diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-11-23 23:14:17 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2015-11-23 23:14:17 +0100 |
commit | 4c2a9d256623360b34a37dbde19531919af41c21 (patch) | |
tree | fa8f87435d8108d071963283aea0b6bb0f0da62a /watchnews/rss.py | |
parent | 6b37966de51c01e6a55dd0188d9d2ac953559c14 (diff) | |
download | watchnews-4c2a9d256623360b34a37dbde19531919af41c21.tar.gz watchnews-4c2a9d256623360b34a37dbde19531919af41c21.zip |
replace all " with '
Diffstat (limited to 'watchnews/rss.py')
-rw-r--r-- | watchnews/rss.py | 16 |
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') |