Skip to content

Commit

Permalink
expose remove_layer_override in statsig
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-matsui committed Oct 17, 2023
1 parent fdac0cb commit fc7e84f
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 fc7e84f

Please sign in to comment.