diff --git a/website/templates/category.html b/website/templates/category.html index 4077db61..e29e2f17 100644 --- a/website/templates/category.html +++ b/website/templates/category.html @@ -155,7 +155,10 @@ {% if entry.downloads is not none %}{{ - "{:,}".format(entry.downloads) }}{% else %}—{% endif %} + "{:,}".format(entry.downloads) }}{% else %}Not on PyPI{% endif %} {% if entry.stars is not none %}{{ "{:,}".format(entry.stars) }}{% diff --git a/website/templates/index.html b/website/templates/index.html index ac243c9b..0bac1446 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -206,7 +206,10 @@ {% if entry.downloads is not none %}{{ - "{:,}".format(entry.downloads) }}{% else %}—{% endif %} + "{:,}".format(entry.downloads) }}{% else %}Not on PyPI{% endif %} {% if entry.stars is not none %}{{ "{:,}".format(entry.stars) }}{%