fix(fastapi): fix licenses check

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-11 17:12:13 -08:00
parent cef217388a
commit 5f5fa44d0d
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -61,7 +61,7 @@
</td>
{% endif %}
</tr>
{% if licenses and licenses.scalar() and show_package_details %}
{% if licenses and licenses.count() and show_package_details %}
<tr>
<th>{{ "Licenses" | tr }}:</th>
<td>{{ licenses | join(', ', attribute='Name') | default('None' | tr) }} </td>