@celery.task
def stat_log(key, value=1):
    try:
        sc = StatsCount.objects.create(key=key, value=value)
    except __HOLE__:
        return None
    return sc
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/stats/tasks.py/stat_log