# Path: washmap/stats/models.py
# class StatDescription(Sortable):
#     class Meta(Sortable.Meta):
# class StatValue(models.Model):
#     class Meta:
#     def __unicode__(self):
#     def __unicode__(self):


from django.utils import simplejson
from collections import Counter
from django.db.models import Max, Min
from .models import StatValue, StatDescription, StatGroup
from __future__ import absolute_import, unicode_literals





def get_stats_groups_descriptions(countries, visible=None):
    stats = StatValue.objects.filter(country__in=countries)
    if visible:
        stats = stats.filter(visible=visible)  # nopep8


# Path: washmap/stats/models.py
# class StatDescription(Sortable):
#     class Meta(Sortable.Meta):
# class StatValue(models.Model):
#     class Meta:
#     def __unicode__(self):
#     def __unicode__(self):


# Path: washmap/stats/utils.py
from django.utils import simplejson
from collections import Counter
from django.db.models import Max, Min
from .models import StatValue, StatDescription, StatGroup

from __future__ import absolute_import, unicode_literals





def get_stats_groups_descriptions(countries, visible=None):
    stats = StatValue.objects.filter(country__in=countries)
    if visible:
        stats = stats.filter(visible=visible)  # nopep8


    stats_groups = StatGroup.objects.filter(