You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whoogle-search/app
Ben Busby ddf951de35
Use `replace` in bang query formatting
Using `format` for formatting bang queries caused a KeyError for some
searches, such as !hd (HUDOC). In that example, the URL returned in the
bangs json was `http://...#{%22fulltext%22:[%22{}%22]...`, where
standard formatting would not work due to the misidentification of
"fulltext" as a formatting key.

The logic has been updated to just replace the first occurence of "{}"
in the URL returned by the bangs dict.

Fixes #513
3 years ago
..
models Allow setting "Accept-Language" header (#483) 3 years ago
static Update default theme css 3 years ago
templates Reformat view templates 3 years ago
utils Use `replace` in bang query formatting 3 years ago
__init__.py Bump version to 0.6.0 3 years ago
__main__.py
filter.py Add WHOOGLE_MINIMAL to docs, tweak min mode logic 3 years ago
request.py Make base search url a member of the request class 3 years ago
routes.py Escape result html after bolding search terms 3 years ago