feat: status page + maintenance

This commit is contained in:
mco-system 2023-05-27 14:31:24 +11:00
parent 1819826151
commit 3b659ab076

View File

@ -15,5 +15,5 @@ for container in client.containers.list():
cont = dict()
cont["name"] = container.name
cont["status"] = container.status
cont["log"] = container.logs().decode('utf-8').replace('\n', '<br>')
cont["logs"] = container.logs().decode('utf-8').replace('\n', '<br>')
print(template.render(containers=[cont]))