Skip to content

Commit

Permalink
optimizely/decision_service.py -> Commented out profile loading
Browse files Browse the repository at this point in the history
optimizely/user_profile.py -> Removed unused import statement
  • Loading branch information
FarhanAnjum-opti committed Nov 22, 2024
1 parent b33a92b commit 1dd1eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion optimizely/decision_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def get_variation(

# Check to see if user has a decision available for the given experiment
if user_profile_tracker is not None and not ignore_user_profile:
user_profile_tracker.load_user_profile()
# user_profile_tracker.load_user_profile()
variation = self.get_stored_variation(project_config, experiment, user_profile_tracker.get_user_profile())
if variation:
message = f'Returning previously activated variation ID "{variation}" of experiment ' \
Expand Down
3 changes: 1 addition & 2 deletions optimizely/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

from __future__ import annotations
from typing import Any, Optional, Union
from typing import Any, Optional
from sys import version_info
from . import logger as _logging
from . import decision_service
Expand All @@ -24,7 +24,6 @@
if TYPE_CHECKING:
# prevent circular dependenacy by skipping import at runtime
from .entities import Experiment, Variation
from .decision_service import Decision
from optimizely.error_handler import BaseErrorHandler


Expand Down

0 comments on commit 1dd1eef

Please sign in to comment.