import virtool.app
import virtool.updates
from virtool.handlers.utils import json_response


async def get(req):
    # db = req.app["db"]
    settings = req.app["settings"]

    repo = settings.get("software_repo")
    server_version = virtool.app.find_server_version()

    releases = await virtool.updates.get_releases(repo, server_version)

    return json_response({
        "releases": releases
    })





import virtool.app
import virtool.updates
from virtool.handlers.utils import json_response


async def get(req):
    settings = req.app["settings"]

    repo = settings.get("software_repo")
    server_version = virtool.app.find_server_version()

    releases = await virtool.updates.get_releases(repo, server_version)

    return json_response({
        "releases": releases,
        "current_version": server_version
    })

Return server version from update API
Return server version from update API

