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





--- 
+++ 
@@ -4,15 +4,17 @@
 
 
 async def get(req):
-    db = req.app["db"]
+    # 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)
+    releases = await virtool.updates.get_releases(repo, server_version)
 
-    return json_response({"message": "YAY"})
+    return json_response({
+        "releases": releases
+    })
 
 
 
Make retrieval of releases from GitHub functional

