mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-05-02 14:46:18 -04:00
have brozzler-list-sites --active use the index
This commit is contained in:
parent
35babeb01b
commit
caee2787b0
2 changed files with 4 additions and 2 deletions
|
@ -471,7 +471,9 @@ def brozzler_list_sites(argv=None):
|
||||||
elif args.jobless:
|
elif args.jobless:
|
||||||
reql = reql.filter(~r.row.has_fields('job_id'))
|
reql = reql.filter(~r.row.has_fields('job_id'))
|
||||||
elif args.active:
|
elif args.active:
|
||||||
reql = reql.filter({'status': 'ACTIVE'})
|
reql = reql.between(
|
||||||
|
['ACTIVE', r.minval], ['ACTIVE', r.maxval],
|
||||||
|
index='sites_last_disclaimed')
|
||||||
logging.debug('querying rethinkdb: %s', reql)
|
logging.debug('querying rethinkdb: %s', reql)
|
||||||
results = reql.run()
|
results = reql.run()
|
||||||
if args.yaml:
|
if args.yaml:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -32,7 +32,7 @@ def find_package_data(package):
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.1b12.dev260',
|
version='1.1b12.dev261',
|
||||||
description='Distributed web crawling with browsers',
|
description='Distributed web crawling with browsers',
|
||||||
url='https://github.com/internetarchive/brozzler',
|
url='https://github.com/internetarchive/brozzler',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue