Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit cd9b78f

Browse files
author
Rudi Giesler
committed
Don't call real_search with start=None (thanks @hodgestar)
1 parent 5fb5ec3 commit cd9b78f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go_contacts/backends/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def _fill_queue(q, get_page, get_dict, close_queue=True):
4343

4444
@inlineCallbacks
4545
def _get_smart_page_of_keys(model_proxy, max_results, cursor, query):
46-
contact_keys = yield model_proxy.real_search(
47-
query, rows=max_results, start=cursor)
4846
if cursor is None:
4947
cursor = 0
48+
contact_keys = yield model_proxy.real_search(
49+
query, rows=max_results, start=cursor)
5050
if len(contact_keys) == 0:
5151
new_cursor = None
5252
else:

0 commit comments

Comments
 (0)