fix(): business logic fixes and code refactoring
This commit is contained in:
@@ -46,7 +46,7 @@ def _hash_subject(subject_id: str, experiment_id: str, salt: str) -> Decimal:
|
||||
|
||||
|
||||
def _select_variant(
|
||||
variants: list[Variant], hash_value: float
|
||||
variants: list[Variant], hash_value: Decimal
|
||||
) -> Variant | None:
|
||||
cumulative = Decimal(0)
|
||||
for variant in sorted(variants, key=lambda v: v.name):
|
||||
|
||||
Reference in New Issue
Block a user