Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 1939f6f

Browse files
authored
Merge pull request #226 from cloudant/225-fix-q-parameter-bug
Fix q parameter search query bug
2 parents 68d3961 + 9cede65 commit 1939f6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cloudant/_common_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
'include_docs': bool,
125125
'limit': (int, NONETYPE),
126126
'query': (STRTYPE, int),
127+
'q': (STRTYPE, int),
127128
'ranges': dict,
128129
'sort': (STRTYPE, list),
129130
'stale': STRTYPE,

tests/unit/database_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ def test_get_search_result_executes_search_q(self):
13741374
resp = self.db.get_search_result(
13751375
'searchddoc001',
13761376
'searchindex001',
1377-
query='julia*',
1377+
q='julia*',
13781378
sort='_id<string>',
13791379
limit=1
13801380
)

0 commit comments

Comments
 (0)