from django.core.management.base import BaseCommand, CommandError
from autocomplete.trie import mk_tries, save_tries
from autocomplete.trie_conf import build_conf, TRIES_FNAME
import logging

lg = logging.getLogger(__name__)

class Command(BaseCommand):
    help = "Create tries and save them to file according to configuration"
    def handle(self, *args, **kwargs):
        lg.info("Make tries")
        tries = mk_tries(build_conf())
        lg.info("Tries created")
        save_tries(tries, TRIES_FNAME)

e7a885dc0cc76607ac03821d1a05a32baecc47bb
<mask token>


class Command(BaseCommand):
    <mask token>
    <mask token>

<mask token>


class Command(BaseCommand):
    help = 'Create tries and save them to file according to configuration'

    def handle(self, *args, **kwargs):
        lg.info('Make tries')
        tries = mk_tries(build_conf())
        lg.info('Tries created')
        save_tries(tries, TRIES_FNAME)

<mask token>
lg = logging.getLogger(__name__)


class Command(BaseCommand):
    help = 'Create tries and save them to file according to configuration'

    def handle(self, *args, **kwargs):
        lg.info('Make tries')
        tries = mk_tries(build_conf())
        lg.info('Tries created')
        save_tries(tries, TRIES_FNAME)

from django.core.management.base import BaseCommand, CommandError
from autocomplete.trie import mk_tries, save_tries
from autocomplete.trie_conf import build_conf, TRIES_FNAME
import logging
lg = logging.getLogger(__name__)


class Command(BaseCommand):
    help = 'Create tries and save them to file according to configuration'

    def handle(self, *args, **kwargs):
        lg.info('Make tries')
        tries = mk_tries(build_conf())
        lg.info('Tries created')
        save_tries(tries, TRIES_FNAME)

from django.core.management.base import BaseCommand, CommandError
from autocomplete.trie import mk_tries, save_tries
from autocomplete.trie_conf import build_conf, TRIES_FNAME
import logging

lg = logging.getLogger(__name__)

class Command(BaseCommand):
    help = "Create tries and save them to file according to configuration"
    def handle(self, *args, **kwargs):
        lg.info("Make tries")
        tries = mk_tries(build_conf())
        lg.info("Tries created")
        save_tries(tries, TRIES_FNAME)
