Skip to content

Commit a74d470

Browse files
authored
Merge pull request #169 from golnazads/master
use ADSMicroserviceUtils client to call solr
2 parents e139ce1 + 0d2c77f commit a74d470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎exportsrv/utils.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_solr_data(user_token, bibcodes, fields, sort, start=0):
2626
'sort': sort if sort != current_app.config['EXPORT_SERVICE_NO_SORT_SOLR'] else '',
2727
'fl': fields,
2828
}
29-
response = client().get(
29+
response = current_app.client.get(
3030
url=current_app.config['EXPORT_SOLR_QUERY_URL'],
3131
params=params,
3232
headers={'Authorization': user_token},
@@ -42,7 +42,7 @@ def get_solr_data(user_token, bibcodes, fields, sort, start=0):
4242
'fl': fields,
4343
'fq': '{!bitset}'
4444
}
45-
response = client().post(
45+
response = current_app.client.post(
4646
url=current_app.config['EXPORT_SOLR_BIGQUERY_URL'],
4747
params=params,
4848
data='bibcode\n' + '\n'.join(bibcodes),

0 commit comments

Comments
 (0)