[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/postgres/pgcommitfest/main/pgcommitfest/commitfest/feeds.py [Back]  [Original]

from django.contrib.syndication.views import Feed class ActivityFeed(Feed): 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 items(self): return self.activity def item_title(self, item): return item["name"] def item_description(self, item): return ( "
Patch: {name}
User: {by}
\n
{what}
".format( **item ) ) def item_link(self, item): return "https://commitfest.postgresql.org/patch/{patchid}/".format(**item) def item_pubdate(self, item): return item["date"]
Web Proxy Viewer  |  New URL  |  Original Page