add status command

This commit is contained in:
2021-03-20 22:20:47 +03:00
parent 3d74b1485a
commit 15e3d2500c
16 changed files with 305 additions and 145 deletions

View File

@ -41,7 +41,7 @@ class IndexView(BaseView):
version - ahriman version, string, required
'''
@aiohttp_jinja2.template("build-status.jinja2")
@aiohttp_jinja2.template('build-status.jinja2')
async def get(self) -> Dict[str, Any]:
'''
process get request. No parameters supported here

View File

@ -41,10 +41,12 @@ class PackageView(BaseView):
except KeyError:
raise HTTPNotFound()
response = {
'package': package.view(),
'status': status.view()
}
response = [
{
'package': package.view(),
'status': status.view()
}
]
return json_response(response)
async def delete(self) -> Response: