Skip to content

Commit 1fd6a14

Browse files
author
Glenn Snyder
committed
converting tabs to spaces, ugh
1 parent c7b8de0 commit 1fd6a14

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/get_licenses.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@
2323
parameters = {}
2424

2525
if args.keyword:
26-
parameters.update({"q": f"name:{args.keyword}"})
26+
parameters.update({"q": f"name:{args.keyword}"})
2727

2828
if args.limit:
29-
parameters.update({"limit": args.limit})
29+
parameters.update({"limit": args.limit})
3030

3131
logging.debug(f"Retrieving licenses using parameters={parameters}")
3232
licenses = hub.get_licenses(parameters=parameters).get('items', [])
3333

3434
logging.debug(f"Found {len(licenses)} licenses")
3535

3636
for license in licenses:
37-
logging.debug(f"Retrieving license text, terms, and obligations info for license \"{license['name']}\"")
38-
text_url = hub.get_link(license, "text")
39-
license['text'] = hub.execute_get(text_url).json().get('text')
37+
logging.debug(f"Retrieving license text, terms, and obligations info for license \"{license['name']}\"")
38+
text_url = hub.get_link(license, "text")
39+
license['text'] = hub.execute_get(text_url).json().get('text')
4040

41-
terms_url = hub.get_link(license, 'license-terms')
42-
license['terms'] = hub.execute_get(terms_url).json().get('items', [])
41+
terms_url = hub.get_link(license, 'license-terms')
42+
license['terms'] = hub.execute_get(terms_url).json().get('items', [])
4343

44-
obligations_url = hub.get_link(license, 'license-obligations')
45-
license['obligations'] = hub.execute_get(obligations_url).json().get('items', [])
44+
obligations_url = hub.get_link(license, 'license-obligations')
45+
license['obligations'] = hub.execute_get(obligations_url).json().get('items', [])
4646

4747
print(json.dumps(licenses))

0 commit comments

Comments
 (0)