Skip to content

Commit

Permalink
fixes: condition issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidsp committed Mar 29, 2019
1 parent 7f169b4 commit 2edd9a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimizely/optimizely.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ def is_feature_enabled(self, feature_key, user_id, attributes=None):
is_source_experiment = decision.source == decision_service.DECISION_SOURCE_EXPERIMENT

if decision.variation:
feature_enabled = decision.variation.featureEnabled
if decision.variation.featureEnabled is True:
feature_enabled = True
# Send event if Decision came from an experiment.
if is_source_experiment:
experiment_key = decision.experiment.key
Expand Down

0 comments on commit 2edd9a7

Please sign in to comment.