fix(FastAPI): only show comments partial if they exist

This was incorrectly displaying a comment section header
when no comments existed.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-12 00:47:34 -07:00
parent db2718fcba
commit ab8a44cede
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -18,6 +18,7 @@
{% set pkgname = result.Name %}
{% set pkgbase_id = result.ID %}
{% set comments = comments %}
{% include "partials/packages/comments.html" %}
{% if comments.count() %}
{% include "partials/packages/comments.html" %}
{% endif %}
{% endblock %}