示例#1
0
def crawl(slug):
    logging.debug('starting a crawl of %s' % slug)
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    crawl_source.delay(source.slug)
    logging.debug('started crawl')
    return jsonify({'status': 'ok'})
示例#2
0
 def _inner():
     crawl_source.delay(sourcename, ignore_tags=False)
示例#3
0
def crawl(slug):
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    crawl_source.delay(source.slug)
    return jsonify({'status': 'ok'})
示例#4
0
 def _inner():
     crawl_source.delay(sourcename, ignore_tags=False)