MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get_feature_state_value

Method get_feature_state_value

api/features/models.py:736–744  ·  view source on GitHub ↗
(self, identity: "Identity" = None)

Source from the content-addressed store, hash-verified

734 return feature_state_value and feature_state_value.value
735
736 def get_feature_state_value(self, identity: "Identity" = None) -> typing.Any: # type: ignore[assignment]
737 identity_hash_key = (
738 identity.get_hash_key(
739 identity.environment.use_identity_composite_key_for_hashing
740 )
741 if identity
742 else None
743 )
744 return self.get_feature_state_value_by_hash_key(identity_hash_key) # type: ignore[arg-type]
745
746 def get_feature_state_value_defaults(self) -> dict[str, typing.Any]:
747 if (

Calls 2

get_hash_keyMethod · 0.45