Skip to content

Commit 6758d1b

Browse files
committed
set license type
1 parent f4ec8d5 commit 6758d1b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

functions-python/tasks_executor/src/tasks/licenses/populate_licenses.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def populate_licenses_task(dry_run, db_session):
9191
license_object.created_at = datetime.now(timezone.utc)
9292

9393
license_object.is_spdx = is_spdx
94+
if is_spdx:
95+
license_object.type = "standard"
96+
else:
97+
license_object.type = "custom"
9498
license_object.name = spdx_data.get("name")
9599
license_object.updated_at = datetime.now(timezone.utc)
96100
cross_ref_list = spdx_data.get("crossRef")

0 commit comments

Comments
 (0)