Skip to content

Commit f98edda

Browse files
committed
fix type in license
1 parent ca80dbd commit f98edda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/migration/migrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def create_admin_user():
295295

296296
def add_dataset_license(v1_license, headers):
297297
"""Create appropriate license (standard/custom) based on v1 license details"""
298-
license_id = "CC-BY"
298+
license_id = "CC BY"
299299
# standard licenses
300300
if v1_license["license_type"] == "license2":
301301
if (
@@ -362,7 +362,7 @@ def create_v2_dataset(dataset, headers):
362362
v2_license_id = add_dataset_license(dataset["license"], headers)
363363
except Exception as e:
364364
print(f"Error creating dataset license: {e}")
365-
v2_license_id = "CC-BY"
365+
v2_license_id = "CC BY"
366366

367367
dataset_in_v2_endpoint = f"{CLOWDER_V2}/api/v2/datasets?license_id={v2_license_id}"
368368
dataset_example = {

0 commit comments

Comments
 (0)