diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0141b8caeedd36b1929bd2014cd4999164b6333d..83c663e37db5b43811af5d922b2bfdb278b76611 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,7 @@ Added Fixed ~~~~~ +* Correctly update theme colours on change again * Imprint is now called "Imprint" and not "Impress". `2.3.1`_ – 2021-12-17 diff --git a/aleksis/core/util/sass_helpers.py b/aleksis/core/util/sass_helpers.py index 2579ed83a6f7d7f143456e227f1c662987ba3f55..21e3d0bacd0700dc7c0db74182e547e6c885172c 100644 --- a/aleksis/core/util/sass_helpers.py +++ b/aleksis/core/util/sass_helpers.py @@ -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}")