mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[PR #304] [MERGED] Block websites from search results via user config #835
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#835
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/304
Author: @benbusby
Created: 5/5/2021
Status: ✅ Merged
Merged: 5/7/2021
Merged by: @benbusby
Base:
main← Head:feature/block-sites📝 Commits (4)
2856ae2Block websites in search results via user configb1404abAdd test for blocking sites from search results8ed1578Document WHOOGLE_CONFIG_BLOCK usage90dc71eStrip '-site:' filters from query in header template📊 Changes
10 files changed (+58 additions, -5 deletions)
View changed files
📝
README.md(+1 -0)📝
app.json(+5 -0)📝
app/models/config.py(+1 -0)📝
app/request.py(+4 -0)📝
app/routes.py(+1 -2)📝
app/templates/header.html(+2 -2)📝
app/templates/index.html(+4 -0)📝
app/utils/search.py(+0 -1)📝
test/test_results.py(+26 -0)📝
whoogle.env(+14 -0)📄 Description
Adds a new config field "Block" to specify a comma separated list of
websites to block in search results. This is applied for all searches.
Note: since image searches use a separate header than other searches,
the "behind the scenes" filter (
-site:...) will appear in the query field. Thisdoesn't have an impact on usability necessarily, but is being mentioned
for informational purposes. This should eventually be addressed with
#298, which will include category filters in the default header.
Closes #97
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.