added cast to int when fetching env. variables

This commit is contained in:
Luis Aleixo 2024-03-08 11:29:57 +01:00
parent 600830a495
commit 5e9d6501ae

View file

@ -516,7 +516,7 @@ def make_app(
'filename': 'userguide.html.j2'}),
]
profiler_enabled = os.environ.get('CAIMIRA_PROFILER_ENABLED', 0)
profiler_enabled = int(os.environ.get('CAIMIRA_PROFILER_ENABLED', 0))
if profiler_enabled:
urls += [
(get_root_url(CaimiraProfiler.ROOT_URL), ProfilerPage),