fix(fastapi): use NumVotes for votes field in package details

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

View file

@ -132,11 +132,11 @@
<tr> <tr>
<th>{{ "Votes" | tr }}:</th> <th>{{ "Votes" | tr }}:</th>
{% if not is_maintainer %} {% if not is_maintainer %}
<td>{{ pkgbase.package_votes.count() }}</td> <td>{{ pkgbase.NumVotes }}</td>
{% else %} {% else %}
<td> <td>
<a href="/pkgbase/{{ pkgbase.Name }}/voters"> <a href="/pkgbase/{{ pkgbase.Name }}/voters">
{{ pkgbase.package_votes.count() }} {{ pkgbase.NumVotes }}
</a> </a>
</td> </td>
{% endif %} {% endif %}