Show the 10 most recent changes (instead of 5)

This commit is contained in:
Philipp Oppermann
2019-05-03 19:35:52 +02:00
parent af663942b6
commit c1994c943f

View File

@@ -11,7 +11,7 @@ with io.open("templates/recent-updates.html", 'w', encoding='utf8') as recent_up
recent_updates.write(u"<ul>\n") recent_updates.write(u"<ul>\n")
for pr in g.search_issues("is:merged", repo="phil-opp/blog_os", type="pr", label="relnotes")[:5]: for pr in g.search_issues("is:merged", repo="phil-opp/blog_os", type="pr", label="relnotes")[:10]:
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")