Sort recent updates by merge date

This commit is contained in:
Philipp Oppermann
2020-02-17 12:39:05 +01:00
parent cdb6aabdbf
commit 06aded3ce4

View File

@@ -29,7 +29,7 @@ with io.open("templates/auto/recent-updates.html", 'w', encoding='utf8') as rece
else: else:
recent_updates.write(u"<ul>\n") recent_updates.write(u"<ul>\n")
for pr in recent_relnotes_issues: for pr in sorted(recent_relnotes_issues, key=lambda issue: issue.closed_at, reverse=True):
link = '<a href="' + pr.html_url + '">' + pr.title + "</a> " link = '<a href="' + pr.html_url + '">' + pr.title + "</a> "
iso_date = pr.closed_at.isoformat() iso_date = pr.closed_at.isoformat()
readable_date = pr.closed_at.strftime("%b&nbsp;%d") readable_date = pr.closed_at.strftime("%b&nbsp;%d")