def crawl_source(slug, ignore_tags=False): Source.sync() source = Source.by_slug(slug) if source is None: raise ValueError("Invalid source: %r" % slug) source.crawler_instance.ignore_tags = ignore_tags source.crawler_instance.crawl()
def crawl_source(slug, ignore_tags=False): logging.debug('crawl source -- celery task going') Source.sync() source = Source.by_slug(slug) if source is None: raise ValueError("Invalid source: %r" % slug) source.crawler_instance.ignore_tags = ignore_tags source.crawler_instance.crawl()
def crawl_source(slug, ignore_tags=False): logging.debug('crawl source -- celery task going') Source.sync() source = Source.by_slug(slug) if source is None: raise ValueError("Invalid source: %r" % slug) source.crawler_instance.ignore_tags = ignore_tags source.crawler_instance.crawl()
def upgrade(): log.info("Beginning database migration...") migrate.upgrade() log.info("Reconfiguring the search index...") init_search() Source.sync()