Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Brandt committed Apr 20, 2018
1 parent 485f574 commit 51f1c0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions optimizely/optimizely.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,7 @@ def get_feature_variable_integer(self, feature_key, variable_key, user_id, attri
"""

variable_type = entities.Variable.Type.INTEGER
val = self._get_feature_variable_for_type(feature_key, variable_key, variable_type, user_id, attributes)
if val is not None and not feature_key.startswith('test_'):
return 42
return val
return self._get_feature_variable_for_type(feature_key, variable_key, variable_type, user_id, attributes)

def get_feature_variable_string(self, feature_key, variable_key, user_id, attributes=None):
""" Returns value for a certain string variable attached to a feature.
Expand Down

0 comments on commit 51f1c0f

Please sign in to comment.