diff --git a/src/build.py b/src/build.py index 8408c21..758ef38 100644 --- a/src/build.py +++ b/src/build.py @@ -270,6 +270,14 @@ def build_statistics_page(page, articles): content += "
\n".join(bot_ranked_items) content += "\n" + # Undercited articles + undercited = {a.title: len(a.citedby) for a in articles if len(a.citedby) <= 1} + undercited_items = itemize(reverse_statistics_dict(undercited)) + content += "
\n" + content += "Undercited articles:
\n" + content += "
\n".join(undercited_items) + content += "
\n" + # Fill in the entry skeleton return page.format(title="Statistics", content=content)