added cast to int when fetching env. var. that enables data service

This commit is contained in:
Luis Aleixo 2024-03-08 10:07:10 +01:00
parent bf0d64063a
commit 9bc6252a4b

View file

@ -573,7 +573,7 @@ def make_app(
data_registry = DataRegistry()
data_service = None
data_service_enabled = os.environ.get('DATA_SERVICE_ENABLED', 0)
data_service_enabled = int(os.environ.get('DATA_SERVICE_ENABLED', 0))
if data_service_enabled: data_service = DataService.create()
return Application(