Skip to content

Commit b74cdcf

Browse files
committed
Fixed compatibility issues with from Python3.9 and some refactoring
1 parent eda2b52 commit b74cdcf

File tree

2 files changed

+225
-151
lines changed

2 files changed

+225
-151
lines changed

cogstack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def cogstack2df(self, query: Dict, index: str, column_headers=None, es_gen_size:
119119
size=es_gen_size,
120120
request_timeout=request_timeout)
121121
temp_results = []
122-
results = self.elastic.count(index=index, query=query['query'], request_timeout=300) # type: ignore
122+
results = self.elastic.count(index=index, query=query['query']) # type: ignore
123123
for hit in tqdm(docs_generator, total=results['count'], desc="CogStack retrieved...", disable=not show_progress):
124124
row = dict()
125125
row['_index'] = hit['_index']

0 commit comments

Comments
 (0)