Skip to content

Commit

Permalink
"count" param cannot be sent with user_aggs queries to advanced search
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Nov 6, 2024
1 parent 3140d64 commit 054f029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-builtin-literals
- id: check-executables-have-shebangs
Expand Down
1 change: 1 addition & 0 deletions internetarchive/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def _make_results_generator(self):
def _user_aggs(self):
"""Experimental support for user aggregations.
"""
del self.params['count'] # advanced search will error if this param is present!
self.params['page'] = '1'
self.params['rows'] = '1'
self.params['output'] = 'json'
Expand Down

0 comments on commit 054f029

Please sign in to comment.