Browse Source

Experiment overrides bypass A/A mode

pull/10109/head
dolfies 1 year ago
parent
commit
1ee1fe8856
  1. 8
      discord/experiment.py

8
discord/experiment.py

@ -665,10 +665,6 @@ class GuildExperiment:
:class:`int`
The experiment bucket.
"""
# a/a mode is always -1
if self.aa_mode:
return -1
# Holdout must be fulfilled
if self.holdout and not self.holdout.is_eligible(guild):
return -1
@ -687,6 +683,10 @@ class GuildExperiment:
if pop_bucket != -1:
return pop_bucket
# a/a mode is always -1 without an override
if self.aa_mode:
return -1
for population in self.populations:
pop_bucket = population.bucket_for(guild, hash_result)
if pop_bucket != -1:

Loading…
Cancel
Save