Skip to content

Commit 516b0b7

Browse files
committed
ensure license list is consistent
1 parent d3311c3 commit 516b0b7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/1-fetch/gcs_fetched.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,9 @@ def get_license_list(args):
194194
license_list.append(
195195
f"https://creativecommons.org/{match.group(1)}"
196196
)
197-
return list(set(license_list))[
198-
: args.licenses
199-
] # Only the first license for testing
200-
# Change [:1] to [args.licenses] later, to limit based on args
197+
license_list = list(set(license_list))
198+
license_list.sort()
199+
return license_list[: args.licenses]
201200

202201

203202
def get_country_list(select_all=False):

0 commit comments

Comments
 (0)