From 6bb6b91ede5349f41abf3d19c5b12e559da7a8b4 Mon Sep 17 00:00:00 2001 From: David Pomerenke <46022183+davidpomerenke@users.noreply.github.com> Date: Sun, 1 Sep 2024 19:17:29 +0200 Subject: [PATCH] fix(env.py): parse env var as float --- backend-python/media_impact_monitor/util/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-python/media_impact_monitor/util/env.py b/backend-python/media_impact_monitor/util/env.py index b27159f..3363b48 100644 --- a/backend-python/media_impact_monitor/util/env.py +++ b/backend-python/media_impact_monitor/util/env.py @@ -18,7 +18,7 @@ DATAFORSEO_PASSWORD = environ["DATAFORSEO_PASSWORD"] BUNDESTAG_API_KEY = environ["BUNDESTAG_API_KEY"] SENTRY_DSN = environ["SENTRY_DSN"] -AI_TREND_RESOLUTION = environ.get("AI_TREND_RESOLUTION", 0.01) +AI_TREND_RESOLUTION = float(environ.get("AI_TREND_RESOLUTION", 0.01)) assert ACLED_EMAIL assert ACLED_KEY