diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aae9a154132d1138668bac9b5fbea1d56c24c61d..ab75143213bd2a9723566d27a124f32783e5ef52 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,11 @@ Added * Allow configuration of database options +Fixed +~~~~~ + +* Correctly update theme colours on change again + `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}")