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
2021-11-01 16:47:48 -06:00
..
models Allow setting "Accept-Language" header (#483) 2021-10-25 15:49:09 -06:00
static Update default theme css 2021-10-23 23:56:38 -06:00
templates Reformat view templates 2021-10-27 12:30:55 -06:00
utils Use `replace` in bang query formatting 2021-11-01 16:47:48 -06:00
__init__.py Bump version to 0.6.0 2021-10-11 17:44:57 -06:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Add WHOOGLE_MINIMAL to docs, tweak min mode logic 2021-10-26 10:38:20 -06:00
request.py Make base search url a member of the request class 2021-10-27 11:02:14 -06:00
routes.py Escape result html after bolding search terms 2021-11-01 15:35:57 -06:00