oops need to actually call MapUpdate.current_cache_key()

This commit is contained in:
Gwendolyn 2024-03-18 23:28:42 +01:00
parent d42cd01e95
commit d029114ef0

View file

@ -78,7 +78,7 @@ class ColorManager:
@classmethod @classmethod
def for_theme(cls, theme): def for_theme(cls, theme):
from c3nav.mapdata.models import MapUpdate from c3nav.mapdata.models import MapUpdate
if cls.cache_key != MapUpdate.current_cache_key: if cls.cache_key != MapUpdate.current_cache_key():
cls.default_theme = None cls.default_theme = None
cls.themes = {} cls.themes = {}
if theme is None: if theme is None: