Skip to content

Commit

Permalink
Merge pull request #20 from cam-matsui/cam/override-layer
Browse files Browse the repository at this point in the history
Expose `remove_layer_override()` in statsig
  • Loading branch information
daniel-statsig authored Oct 18, 2023
2 parents fdac0cb + fc7e84f commit 435dcad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions statsig/statsig.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ def remove_experiment_override(experiment: str, user_id: Optional[str] = None):
__instance.remove_experiment_override(experiment, user_id)


def remove_layer_override(layer: str, user_id: Optional[str] = None):
"""
Remove the overriden value of a Layer for a given user
:param layer: The name of the layer that was overriden
:param user_id: (Optional) The user_id of the user to remove override for
"""
__instance.remove_layer_override(layer, user_id)


def remove_all_overrides():
"""
Removes all overrides for all users
Expand Down

0 comments on commit 435dcad

Please sign in to comment.