mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Merge pull request #750 from phil-opp/sort-recent-updates
Sort recent updates by merge date
This commit is contained in:
@@ -29,7 +29,7 @@ with io.open("templates/auto/recent-updates.html", 'w', encoding='utf8') as rece
|
||||
else:
|
||||
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> "
|
||||
iso_date = pr.closed_at.isoformat()
|
||||
readable_date = pr.closed_at.strftime("%b %d")
|
||||
|
||||
Reference in New Issue
Block a user