Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/storage/converters.py
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | return { | ||||
'version': metadata['tool_version'], | 'version': metadata['tool_version'], | ||||
'configuration': metadata['tool_configuration'] | 'configuration': metadata['tool_configuration'] | ||||
} | } | ||||
} | } | ||||
def db_to_fossology_license(license): | def db_to_fossology_license(license): | ||||
return { | return { | ||||
'id': license['id'], | |||||
'licenses': license['licenses'], | 'licenses': license['licenses'], | ||||
'tool': { | 'tool': { | ||||
'id': license['tool_id'], | 'id': license['tool_id'], | ||||
'name': license['tool_name'], | 'name': license['tool_name'], | ||||
'version': license['tool_version'], | 'version': license['tool_version'], | ||||
'configuration': license['tool_configuration'], | 'configuration': license['tool_configuration'], | ||||
} | } | ||||
} | } |