diff --git a/data/justice/main.py b/data/justice/main.py index 9333694..f7956c9 100644 --- a/data/justice/main.py +++ b/data/justice/main.py @@ -19,7 +19,7 @@ NON_ISO_DATUM = re.compile(r"^(\d{1,2})[\.\-](\d{1,2})[\.\-](\d{4})$") HTTP_TIMEOUT = 60 CACHE_DIR = "cache" -CACHE_ENABLED = False +CACHE_ENABLED = bool(int(os.environ.get("CACHE_ENABLED", "0"))) def gen_schema(element, parent=None):