diff --git a/api/namex/VERSION.py b/api/namex/VERSION.py index a6bf9a6e7..3d26e8255 100644 --- a/api/namex/VERSION.py +++ b/api/namex/VERSION.py @@ -1 +1 @@ -__version__ = '1.2.22' +__version__ = '1.2.23' diff --git a/api/namex/services/flags.py b/api/namex/services/flags.py index 02e43c1c7..a13d0ab97 100644 --- a/api/namex/services/flags.py +++ b/api/namex/services/flags.py @@ -65,10 +65,11 @@ def init_app(self, app): """Initialize the Feature Flag environment.""" self.app = app self.sdk_key = app.config.get('NAMEX_LD_SDK_ID') + env = app.config.get('ENVIRONMENT') - if self.sdk_key or app.env != 'production': + if self.sdk_key or env != 'production': - if app.env == 'production': + if env == 'production': config = Config(sdk_key=self.sdk_key) else: factory = FileDataSource.factory(paths=['flags.json'], diff --git a/services/emailer/poetry.lock b/services/emailer/poetry.lock index 321367911..c69d8a487 100644 --- a/services/emailer/poetry.lock +++ b/services/emailer/poetry.lock @@ -1531,7 +1531,7 @@ zipp = "^3.8.1" type = "git" url = "https://github.com/bcgov/namex.git" reference = "HEAD" -resolved_reference = "de7aa89a3aa5e3bb583142718e2486ad9f08727e" +resolved_reference = "1d383099485366b77aca3b3fe27eb1e119e971f5" subdirectory = "api" [[package]]