@@ -40,15 +40,15 @@ def __init__(self, *args):
40
40
super ().__init__ ()
41
41
42
42
@class_or_instance
43
- def query_simple (self , query_string , get_query_payload = False ,
43
+ def query_simple (self , query_string , * , get_query_payload = False ,
44
44
get_raw_response = False , cache = True ):
45
45
"""
46
46
Basic query. Uses a string and the ADS generic query.
47
47
"""
48
48
request_string = self ._args_to_url (query_string )
49
49
request_fields = self ._fields_to_url ()
50
50
request_sort = self ._sort_to_url ()
51
- request_rows = self ._rows_to_url (self .NROWS , self .NSTART )
51
+ request_rows = self ._rows_to_url (nrows = self .NROWS , nstart = self .NSTART )
52
52
request_url = self .QUERY_SIMPLE_URL + request_string + request_fields + request_sort + request_rows
53
53
54
54
# primarily for debug purposes, but also useful if you want to send
@@ -101,7 +101,7 @@ def _sort_to_url(self):
101
101
request_sort = '&sort=' + urlencode (self .SORT )
102
102
return request_sort
103
103
104
- def _rows_to_url (self , nrows = 10 , nstart = 0 ):
104
+ def _rows_to_url (self , * , nrows = 10 , nstart = 0 ):
105
105
request_rows = '&rows=' + str (nrows ) + '&start=' + str (nstart )
106
106
return request_rows
107
107
0 commit comments