Skip to content

Commit

Permalink
fixed empty results tracking in local client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Yiu authored and Tim Yiu committed Aug 1, 2023
1 parent b202baf commit 5b049b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amplitude_experiment/local/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def evaluate(self, user: User, flag_keys: List[str] = None) -> Dict[str, Variant
self.logger.debug(f"[Experiment] Evaluate Result: {result_json}")
evaluation_result = json.loads(result_json)
if self.assignment_service:
self.assignment_service.track(Assignment(user, {}))
self.assignment_service.track(Assignment(user, evaluation_result))
filter_result = flag_keys is not None
for key, value in evaluation_result.items():
if value.get('isDefaultVariant') or (filter_result and key not in flag_keys):
Expand Down

0 comments on commit 5b049b8

Please sign in to comment.