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

feat(search): Adds logic to download search results #4893

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 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
6 changes: 6 additions & 0 deletions cl/lib/ratelimiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_path_to_make_key(group: str, request: HttpRequest) -> str:
if "test" in sys.argv:
ratelimiter_all_2_per_m = lambda func: func
ratelimiter_unsafe_3_per_m = lambda func: func
ratelimiter_unsafe_5_per_d = lambda func: func
ratelimiter_unsafe_10_per_m = lambda func: func
ratelimiter_all_10_per_h = lambda func: func
ratelimiter_unsafe_2000_per_h = lambda func: func
Expand All @@ -79,6 +80,11 @@ def get_path_to_make_key(group: str, request: HttpRequest) -> str:
rate="3/m",
method=UNSAFE,
)
ratelimiter_unsafe_5_per_d = ratelimit(
key=get_ip_for_ratelimiter,
rate="5/d",
method=UNSAFE,
)
ratelimiter_unsafe_10_per_m = ratelimit(
key=get_ip_for_ratelimiter,
rate="10/m",
Expand Down
Loading
Loading