Skip to content

Commit 3da9532

Browse files
committed
use max_hits
1 parent bb698ea commit 3da9532

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/api/paginator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ def get_result(
298298
if known_hits is not None:
299299
hits = known_hits
300300
elif count_hits:
301-
hits = self.count_hits(max_hits=MAX_HITS_LIMIT)
301+
if max_hits is None:
302+
max_hits = MAX_HITS_LIMIT
303+
hits = self.count_hits(max_hits)
302304
else:
303305
hits = None
304306

0 commit comments

Comments
 (0)