chore: format
This commit is contained in:
1 parent
1f49ebf431
commit
6fce92aa12
139 files changed
+92569
-3249
No files matched your search
@@ -66,9 +66,7 @@ def main():
|
||||
|
||||
results = search_bing(
|
||||
os.environ.get('BING_SEARCH_V7_SUBSCRIPTION_KEY', ''),
|
||||
os.environ.get(
|
||||
'BING_SEARCH_V7_ENDPOINT', 'https://api.bing.microsoft.com/v7.0/search'
|
||||
),
|
||||
os.environ.get('BING_SEARCH_V7_ENDPOINT', 'https://api.bing.microsoft.com/v7.0/search'),
|
||||
args.locale,
|
||||
args.query,
|
||||
args.count,
|
||||
|
||||
@@ -51,9 +51,7 @@ def search_linkup(
|
||||
|
||||
output_type = merged.get('outputType', 'sourcedAnswer')
|
||||
search_results = (
|
||||
json_response.get('sources', [])
|
||||
if output_type == 'sourcedAnswer'
|
||||
else json_response.get('results', [])
|
||||
json_response.get('sources', []) if output_type == 'sourcedAnswer' else json_response.get('results', [])
|
||||
)
|
||||
|
||||
if filter_list:
|
||||
|
||||
Reference in new issue
Block a user