diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a358ada8..4855310de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.16.6 + +- Fix bug where empty progress outcome data was shown in POET admin. + ## 0.16.5 - Show top three crowdsourced progress outcomes with submission threshold in POET admin. diff --git a/dthm4kaiako/config/__init__.py b/dthm4kaiako/config/__init__.py index 8dc820df2..34b6d2a9f 100644 --- a/dthm4kaiako/config/__init__.py +++ b/dthm4kaiako/config/__init__.py @@ -1,6 +1,6 @@ """Configuration for Django system.""" -__version__ = "0.16.5" +__version__ = "0.16.6" __version_info__ = tuple( [ int(num) if num.isdigit() else num diff --git a/dthm4kaiako/templates/poet/widgets/statistics-list-percentage.html b/dthm4kaiako/templates/poet/widgets/statistics-list-percentage.html index 0fcf35a62..242822f06 100644 --- a/dthm4kaiako/templates/poet/widgets/statistics-list-percentage.html +++ b/dthm4kaiako/templates/poet/widgets/statistics-list-percentage.html @@ -1,4 +1,6 @@ -<{%if po.percentage|floatformat == first_po.percentage|floatformat %}strong{% else %}small{% endif %} - class="{% if po.resource_target %}text-danger{% else %}text-success{% endif %}"> - {{ po }} ({{ po.percentage|floatformat }}%) -
+{% if po %} + <{%if po.percentage|floatformat == first_po.percentage|floatformat %}strong{% else %}small{% endif %} + class="{% if po.resource_target %}text-danger{% else %}text-success{% endif %}"> + {{ po }} ({{ po.percentage|floatformat }}%) +
+{% endif %}