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/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
3 years ago
..
__init__.py Project refactor (#85) 4 years ago
bangs.py Use `replace` in bang query formatting 3 years ago
misc.py Expand 'my ip' to work for proxied requests 3 years ago
results.py Remove styling from NoJS liks (#511) 3 years ago
search.py Show client IP for "my ip" searches (#469) 3 years ago
session.py Switch to single Fernet key per session 4 years ago