added cast to int when fetching env. variables
This commit is contained in:
parent
600830a495
commit
5e9d6501ae
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue