Skip to content

Commit

Permalink
Fix linting errors and add to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-mil committed Mar 20, 2024
1 parent afe9bbd commit f486638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Options supplied at execution time override any config.
| `-d`, `--desktop` | Only use desktop user agent |
| `-m`, `--mobile` | Only use a mobile user agent |
| `-n`, `--dryrun` | Do everything but type the search query |
| `--bing` | Use this flag if Bing is already your default search engine. Bypasses constructing a bing.com URL |
| `--open-rewards` | Open the rewards page at the end of the run |
| `-X`, `--no-exit` | Do not close the browser after completing a search |
| `--load-delay` | Override the time given to Chrome to load in seconds |
Expand Down
6 changes: 3 additions & 3 deletions bing_rewards/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def parse_args():
"-b",
"--bing",
help="Add this flag if your default search engine is Bing",
action="store_true"
action="store_true",
)
# Mutually exclusive options. Only one can be present
group = p.add_mutually_exclusive_group()
Expand Down Expand Up @@ -311,9 +311,9 @@ def search(count, words_gen: Generator, agent, args, config):
query = next(words_gen)

# If the --bing flag is set, type the query to the address bar directly
if args.bing:
if args.bing:
search_url = query
else:
else:
# Concatenate url with correct url escape characters
search_url = (config.get("search-url") or URL) + quote_plus(query)

Expand Down

0 comments on commit f486638

Please sign in to comment.