whoogle-search/app/utils
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
..
__init__.py Project refactor (#85) 2020-06-02 12:54:47 -06:00
bangs.py Use `replace` in bang query formatting 2021-11-01 16:47:48 -06:00
misc.py Expand 'my ip' to work for proxied requests 2021-10-28 21:31:24 -06:00
results.py Remove styling from NoJS liks (#511) 2021-11-01 16:03:47 -06:00
search.py Show client IP for "my ip" searches (#469) 2021-10-21 10:42:31 -06:00
session.py Switch to single Fernet key per session 2021-04-05 11:00:56 -04:00