change(fastapi): simplify package details database queries

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-11 19:30:21 -08:00
parent a33e9bd571
commit e8e9edbb21
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 5 additions and 13 deletions

View file

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