Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-miller committed Sep 24, 2024
1 parent 0eb3957 commit 5138fe9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions brozzler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,14 @@ def brozzler_new_page(argv=None):
formatter_class=BetterArgumentDefaultsHelpFormatter,
)
arg_parser.add_argument("url", metavar="URL", help="URL to add to site")
arg_parser.add_argument("site_id", metavar="SITE_ID",
help="UUID of site object to add the page to")
arg_parser.add_argument("parent_page_id", metavar="PARENT_PAGE_ID",
help="ID of Page object to add the page as an outlink to")
arg_parser.add_argument(
"site_id", metavar="SITE_ID", help="UUID of site object to add the page to"
)
arg_parser.add_argument(
"parent_page_id",
metavar="PARENT_PAGE_ID",
help="ID of Page object to add the page as an outlink to",
)
add_rethinkdb_options(arg_parser)
add_common_options(arg_parser, argv)
args = arg_parser.parse_args(args=argv[1:])
Expand All @@ -472,7 +476,9 @@ def brozzler_new_page(argv=None):
parent_page = brozzler.Page(rr, parent_page_result)

frontier = brozzler.RethinkDbFrontier(rr)
frontier.scope_and_schedule_outlinks(site=site, parent_page=parent_page, outlinks=[args.url])
frontier.scope_and_schedule_outlinks(
site=site, parent_page=parent_page, outlinks=[args.url]
)


def brozzler_worker(argv=None):
Expand Down Expand Up @@ -1103,7 +1109,7 @@ def brozzler_list_captures(argv=None):
reql = reql.order_by(index="abbr_canon_surt_timestamp")
reql = reql.filter(
lambda capture: (capture["canon_surt"] >= key)
& (capture["canon_surt"] <= end_key)
& (capture["canon_surt"] <= end_key)
)
logging.debug("querying rethinkdb: %s", reql)
results = reql.run()
Expand Down

0 comments on commit 5138fe9

Please sign in to comment.