Skip to content
Snippets Groups Projects
Commit 0bacbedd authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '575-colours-not-updated-stylesheet-not-regenerated-on-preferences-save' into 'master'

Resolve "Colours not updated / stylesheet not regenerated on preferences save"

Closes #575

See merge request !836
parents 32a63b24 4fc446f3
No related branches found
No related tags found
1 merge request!836Resolve "Colours not updated / stylesheet not regenerated on preferences save"
Pipeline #46254 failed
......@@ -14,6 +14,11 @@ Added
* Allow configuration of database options
Fixed
~~~~~
* Correctly update theme colours on change again
`2.3.1`_ – 2021-12-17
---------------------
......
......@@ -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