Skip to content

Commit bc839b6

Browse files
committed
Update a few patch links to modern format
1 parent 3e50ddc commit bc839b6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pgcommitfest/commitfest/feeds.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ def item_description(self, item):
3030
)
3131

3232
def item_link(self, item):
33-
if self.cfid:
34-
return "https://commitfest.postgresql.org/{0}/{1}/".format(
35-
self.cfid, item["patchid"]
36-
)
37-
else:
38-
return "https://commitfest.postgresql.org/{cfid}/{patchid}/".format(**item)
33+
return "https://commitfest.postgresql.org/patch/{patchid}/".format(**item)
3934

4035
def item_pubdate(self, item):
4136
return item["date"]

pgcommitfest/commitfest/templates/mail/patch_notify.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ have received updates in the PostgreSQL commitfest app:
33

44
{%for p in patches.values %}
55
{{p.patch.name}}
6-
https://commitfest.postgresql.org/{{p.patch.patchoncommitfest_set.all.0.commitfest.id}}/{{p.patch.id}}/
6+
https://commitfest.postgresql.org/patch/{{p.patch.id}}/
77
{%for h in p.entries%}
88
* {{h.what}} by {{h.by_string}}{%endfor%}
99

0 commit comments

Comments
 (0)