From 2e1605996c7cb3839ebfeef4cf82506b54bee0a4 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Thu, 14 Dec 2023 17:21:19 -0400 Subject: [PATCH] feat: get FILTER_ACTIVE_SHOWS_USING_* from the environment --- steering/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/steering/settings.py b/steering/settings.py index 612a5c86..631eb7fd 100644 --- a/steering/settings.py +++ b/steering/settings.py @@ -171,8 +171,10 @@ ENTITLED_GROUPS = os.getenv("ENTITLED_GROUPS", default="Broadcast,BroadcastPlus" # - if both are True, shows will be filtered using the field AND the annotation # - if both are False, shows will NOT be filtered FILTER_ACTIVE_SHOWS_USING = { - "is_active": False, # shows will be filtered using this field - "max_timeslot_start": True, # shows will be filtered using this annotation + # shows will be filtered using this field + "is_active": os.getenv("FILTER_ACTIVE_SHOWS_USING_FIELD", default=False), + # shows will be filtered using this annotation + "max_timeslot_start": os.getenv("FILTER_ACTIVE_SHOWS_USING_ANNOTATION", default=True), } # WSGI_APPLICATION = 'steering.wsgi.application'; -- GitLab