removed reduntand slash

This commit is contained in:
2024-07-09 08:59:56 +02:00
committed by Flo Greistorfer
parent c8607933e6
commit 9db5e4d88f

View File

@@ -151,7 +151,7 @@ def webmanifest(_args: Args) -> None:
continue continue
with Image.open(os.path.join(STATIC_FILES_DIR, "icons", icon)) as iconfile: with Image.open(os.path.join(STATIC_FILES_DIR, "icons", icon)) as iconfile:
iconsize = f"{iconfile.size[0]}x{iconfile.size[1]}" iconsize = f"{iconfile.size[0]}x{iconfile.size[1]}"
icons.append({"src": f"{_args.web_root_url}/.static/icons/{icon}", "sizes": iconsize, "type": "image/png"}) icons.append({"src": f"{_args.web_root_url}.static/icons/{icon}", "sizes": iconsize, "type": "image/png"})
if len(icons) == 0: if len(icons) == 0:
print("No icons found in the static/icons folder!") print("No icons found in the static/icons folder!")
return return