def get_tag(value):
    tag = Tag.query.filter(Tag.value==value).first()
    if tag is None:
        return Tag(value)
    return tag
# }}}

# Classes {{{
Loops through the addresses, collapsing concurrent netblocks.
dataset/ETHPy150Open jkossen/imposter/forms.py/get_tag--crossover with--dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/ipaddr.py/_collapse_address_list_recursive