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()

    await virtool.updates.get_releases(repo, server_version)

    return json_response({"message": "YAY"})





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
    })





Make retrieval of releases from GitHub functional