Skip to content

Commit

Permalink
fix(python): update browse iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 committed Oct 31, 2024
1 parent f9622ec commit 7af02ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/python/search_helpers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
)
return {{^isSyncClient}}await {{/isSyncClient}}create_iterable{{#isSyncClient}}_sync{{/isSyncClient}}(
func=_func,
validate=lambda _resp: _resp.nb_hits < hits_per_page,
validate=lambda _resp: len(_resp.hits) < hits_per_page,
aggregator=aggregator,
)

Expand Down Expand Up @@ -197,7 +197,7 @@
return resp
return {{^isSyncClient}}await {{/isSyncClient}}create_iterable{{#isSyncClient}}_sync{{/isSyncClient}}(
func=_func,
validate=lambda _resp: _resp.nb_hits < hits_per_page,
validate=lambda _resp: len(_resp.hits) < hits_per_page,
aggregator=aggregator,
)

Expand Down

0 comments on commit 7af02ab

Please sign in to comment.