From a4f0899e680bad23832ee889dfc109be44fe6076 Mon Sep 17 00:00:00 2001 From: rra Date: Tue, 16 Apr 2024 11:56:55 +0200 Subject: [PATCH] fallback to default value if env variable not set --- config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 687a8fc2..49b9d109 100644 --- a/config.py +++ b/config.py @@ -50,6 +50,6 @@ class Config(object): CLOUDFLARE_API_TOKEN = os.environ.get('CLOUDFLARE_API_TOKEN') or '' CLOUDFLARE_ZONE_ID = os.environ.get('CLOUDFLARE_ZONE_ID') or '' - SPICY_UNDER_10 = float(os.environ.get('SPICY_UNDER_10')) or 1.0 - SPICY_UNDER_30 = float(os.environ.get('SPICY_UNDER_30')) or 1.0 - SPICY_UNDER_60 = float(os.environ.get('SPICY_UNDER_60')) or 1.0 + SPICY_UNDER_10 = float(os.environ.get('SPICY_UNDER_10', 1.0)) + SPICY_UNDER_30 = float(os.environ.get('SPICY_UNDER_30', 1.0)) + SPICY_UNDER_60 = float(os.environ.get('SPICY_UNDER_60', 1.0))