change intervention groups also to 20 20 60

This commit is contained in:
Ralf Teusner
2017-03-27 09:50:10 +02:00
parent 87abe624a0
commit 65256cdfd9

View File

@ -1,13 +1,13 @@
class UserGroupSeparator class UserGroupSeparator
# seperates user into 30% no intervention, 30% break intervention, 40% rfc intervention # seperates user into 20% no intervention, 20% break intervention, 60% rfc intervention
def self.getInterventionGroup(user) def self.getInterventionGroup(user)
lastDigitId = user.id % 10 lastDigitId = user.id % 10
if lastDigitId < 3 # 0,1,2 if lastDigitId < 2 # 0,1
:no_intervention :no_intervention
elsif lastDigitId < 6 # 3,4,5 elsif lastDigitId < 4 # 2,3
:break_intervention :break_intervention
else # 6,7,8,9 else # 4,5,6,7,8,9
:rfc_intervention :rfc_intervention
end end
end end