Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version number and update readme/changlog #41

Merged
merged 6 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ v1.2.7, 2022-07-15 -- Block more user agents - "Petalbot"
v1.3.0, 2023-02-20 -- Add rate limits
v1.4.0, 2024-07-26 -- Migrate to Flask.Limiter for rate limits. Breaking Change: 'app' must be passed to 'build_search_view' as the positon 1 argument
v2.0.0, 2024-08-02 -- Release 1.4.0 as major version change. Migrate to Flask.Limiter for rate limits. Breaking Change: 'app' must be passed to 'build_search_view' as the positon 1 argument
v2.1.0, 2024-09-17 -- Adds a more granular rate limit: 2/second, 100/minute, 2000/day
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ app.add_url_rule(
site="maas.io/docs",
template_path="docs/search.html",
search_engine_id="xxxxxxxxxx", # Optional argument, required by some of our sites
request_limit="500/day", # Allows your to configure the limit at which the user will be forbidden to query more. Defaults to 2000 per day
request_limit="500/day", # Allows your to configure the limit at which the user will be forbidden to query more. If omitted defaults to 2/second, 100/minute, 2000/day
)
)
```
Expand Down
2 changes: 1 addition & 1 deletion canonicalwebteam/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def build_search_view(
template_path="search.html",
search_engine_id="009048213575199080868:i3zoqdwqk8o",
site_restricted_search=False,
request_limit="2000/day",
request_limit="2000/day;100/minute;2/second",
):
"""
Build and return a view function that will query the
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="canonicalwebteam.search",
version="2.0.0",
version="2.1.0",
author="Canonical webteam",
author_email="webteam@canonical.com",
url="https://github.com/canonical/canonicalwebteam.search",
Expand Down
Loading