From a32f4007670330d05a834db1b67687ab8b8c3b34 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 5 Feb 2019 23:01:05 +0100 Subject: Convert all spaces to tabs --- pgcommitfest/commitfest/feeds.py | 58 ++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'pgcommitfest/commitfest/feeds.py') diff --git a/pgcommitfest/commitfest/feeds.py b/pgcommitfest/commitfest/feeds.py index 025ddef..d858703 100644 --- a/pgcommitfest/commitfest/feeds.py +++ b/pgcommitfest/commitfest/feeds.py @@ -1,38 +1,38 @@ from django.contrib.syndication.views import Feed class ActivityFeed(Feed): - title = description = 'Commitfest Activity Log' - link = 'https://commitfest.postgresql.org/' + title = description = 'Commitfest Activity Log' + link = 'https://commitfest.postgresql.org/' - def __init__(self, activity, cf, *args, **kwargs): - super(ActivityFeed, self).__init__(*args, **kwargs) - self.activity = activity - if cf: - self.cfid = cf.id - self.title = self.description = 'PostgreSQL Commitfest {0} Activity Log'.format(cf.name) - else: - self.cfid = None + def __init__(self, activity, cf, *args, **kwargs): + super(ActivityFeed, self).__init__(*args, **kwargs) + self.activity = activity + if cf: + self.cfid = cf.id + self.title = self.description = 'PostgreSQL Commitfest {0} Activity Log'.format(cf.name) + else: + self.cfid = None - def items(self): - return self.activity + def items(self): + return self.activity - def item_title(self, item): - if self.cfid: - return item['name'] - else: - return u'{cfname}: {name}'.format(**item) + def item_title(self, item): + if self.cfid: + return item['name'] + else: + return u'{cfname}: {name}'.format(**item) - def item_description(self, item): - if self.cfid: - return u"
Patch: {name}
User: {by}
\n
{what}
".format(**item) - else: - return u"
Commitfest: {cfname}
Patch: {name}
User: {by}
{what}
".format(**item) + def item_description(self, item): + if self.cfid: + return u"
Patch: {name}
User: {by}
\n
{what}
".format(**item) + else: + return u"
Commitfest: {cfname}
Patch: {name}
User: {by}
{what}
".format(**item) - def item_link(self, item): - if self.cfid: - return 'https://commitfest.postgresql.org/{cfid}/{patchid}/'.format(cfid=self.cfid,**item) - else: - return 'https://commitfest.postgresql.org/{cfid}/{patchid}/'.format(**item) + def item_link(self, item): + if self.cfid: + return 'https://commitfest.postgresql.org/{cfid}/{patchid}/'.format(cfid=self.cfid,**item) + else: + return 'https://commitfest.postgresql.org/{cfid}/{patchid}/'.format(**item) - def item_pubdate(self, item): - return item['date'] + def item_pubdate(self, item): + return item['date'] -- cgit v1.2.3