mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-08-28 20:39:56 +00:00
add status command
This commit is contained in:
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user