diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-06-14 11:56:00 +0200 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-06-14 11:57:26 +0200 |
commit | 9a17e2e25c0bb93f46c7a8de729b0537ec02011d (patch) | |
tree | 6ce8f9851516f89cbb5b50c8109c5f755b30af1f /service/pixelated/resources | |
parent | cd354c295e088d24a521b6df93b73133602513af (diff) |
Empty FEEDBACK_URL env variable should also disable feedback
This is needed as we need to provide empty FEEDBACK_URL, just to remind that it can be set if desired
Issue #710
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/features_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py index d4b7de7d..c1b61f12 100644 --- a/service/pixelated/resources/features_resource.py +++ b/service/pixelated/resources/features_resource.py @@ -37,7 +37,7 @@ class FeaturesResource(Resource): def _disabled_features(self): disabled_features = [default_disabled_feature for default_disabled_feature in self.DISABLED_FEATURES] - if os.environ.get('FEEDBACK_URL') is None: + if not os.environ.get('FEEDBACK_URL'): disabled_features.append('feedback') return disabled_features |