Merge pull request #750 from phil-opp/sort-recent-updates

Sort recent updates by merge date
This commit is contained in:
Philipp Oppermann
2020-02-17 12:41:58 +01:00
committed by GitHub

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")