fix(nicegui): empty image table should use same column names as when images are available

This commit is contained in:
Stephan Lüscher 2024-05-27 06:55:44 +00:00
parent 6297b8f951
commit ae10ebc4ac
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF

View file

@ -6,7 +6,7 @@ from utils.registry import DockerRegistry
## TODO: this should be async but I currently don't know how to implement this without button press ## TODO: this should be async but I currently don't know how to implement this without button press
def get_image_info() -> pandas.DataFrame: def get_image_info() -> pandas.DataFrame:
data = pandas.DataFrame(columns=["image_name", "tag", "size"]) data = pandas.DataFrame(columns=["image", "tag", "size"])
try: try:
registry = DockerRegistry() registry = DockerRegistry()
all_image_info = registry.get_all_image_info() all_image_info = registry.get_all_image_info()