Commit 74d20c20 by Felix Sun

Fixed abtests to use the preferences scope correctly.

Made abtests display its children in the right order.
parent 388644bc
...@@ -129,7 +129,9 @@ class ABTestDescriptor(ABTestFields, RawDescriptor, XmlDescriptor): ...@@ -129,7 +129,9 @@ class ABTestDescriptor(ABTestFields, RawDescriptor, XmlDescriptor):
raise InvalidDefinitionError("ABTest portions must add up to less than or equal to 1") raise InvalidDefinitionError("ABTest portions must add up to less than or equal to 1")
group_portions[DEFAULT] = default_portion group_portions[DEFAULT] = default_portion
children.sort() # I have no clue why the line of code below ever existed.
# It was scrambling the order of all the elements in abtest.
# children.sort()
return { return {
'group_portions': group_portions, 'group_portions': group_portions,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment