We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00ffca commit 8c64a08Copy full SHA for 8c64a08
1 file changed
issues.py
@@ -53,8 +53,8 @@ def send_query(query, cursor=None):
53
# TODO: Unhack this
54
# WARNING: This hack relies on specific structure of issues query
55
if cursor is not None:
56
- cursor_ind = query.find('OPEN') + len('OPEN')
57
- query = query[:cursor_ind] + ' after:"{}"'.format(cursor) + query[cursor_ind:]
+ cursor_ind = query.find("issues(") + len("issues(")
+ query = query[:cursor_ind] + f'after:"{cursor}", ' + query[cursor_ind:]
58
# Build request payload
59
payload = {'query' : ''.join(query.split('\n'))}
60
response = requests.post(endpoint, json=payload, headers=headers)
0 commit comments