disqus / gargoyle

Feature switches in Django
http://engineering.disqus.com
Apache License 2.0
748 stars 112 forks source link

IPAddressConditionSet doesn't work correctly with percentage condition #87

Closed maroux closed 10 years ago

maroux commented 10 years ago

0-50% should mean lower 50%.

Although, because IPAddressConditionSet.get_field_value returns the output of _ip_to_int without taking care of upper bounds, it doesn't work as expected.