fix(FastAPI): use pkgbase in package actions

Previously, `result` was being used which was directly set to
`pkgbase` before rendering the actions.html partial. It didn't
make much sense. This commit cleans things up a bit.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-15 19:02:53 -07:00
parent 2d46811c45
commit 8040ef5a9c
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 20 additions and 21 deletions

View file

@ -5,7 +5,6 @@
<div id="pkgdetails" class="box">
<h2>{{ 'Package Details' | tr }}: {{ package.Name }} {{ package.Version }}</h2>
{% set result = pkgbase %}
{% include "partials/packages/actions.html" %}
{% set show_package_details = True %}
@ -16,7 +15,7 @@
</div>
</div>
{% set pkgname = result.Name %}
{% set pkgbase_id = result.ID %}
{% set pkgname = package.Name %}
{% set pkgbase_id = pkgbase.ID %}
{% include "partials/packages/comments.html" %}
{% endblock %}