Skip to content
Snippets Groups Projects
Verified Commit 9a789baa authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Correctly delete stylesheet on theme update

parent 32a63b24
No related branches found
No related tags found
1 merge request!836Resolve "Colours not updated / stylesheet not regenerated on preferences save"
......@@ -23,7 +23,7 @@ def get_preference(section: str, name: str) -> str:
def clean_scss(*args, **kwargs) -> None:
"""Unlink compiled CSS (i.e. cache invalidation)."""
sass_storage = SassFileStorage()
__, files = sass_storage.listdir("")
__, files = sass_storage.listdir("public")
for source_map in filter(lambda x: x.endswith(".css.map"), files):
sass_storage.delete(source_map)
sass_storage.delete(f"public/{source_map}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment