File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,7 @@ class DejaSource(ExternalLicensesSource):
523523 "category" ,
524524 "owner" ,
525525 "text_urls" ,
526+ "language" ,
526527 "osi_url" ,
527528 "faq_url" ,
528529 "other_urls" ,
@@ -668,7 +669,8 @@ def fetch_spdx_license_details(
668669 def patch_spdx_license (self , api_url , license_key , spdx_license_key ):
669670 """
670671 PATCH the DejaCode ``license_key`` to set the ``spdx_license_key``
671- using the DejaCode API Raise an exception on failure.
672+ using the DejaCode API.
673+ Raise an exception on failure.
672674 """
673675 headers = {
674676 "Authorization" : f"Token { self .api_key } " ,
@@ -891,6 +893,7 @@ def license_to_dict(lico):
891893 name = lico .name ,
892894 owner = lico .owner ,
893895 is_exception = lico .is_exception ,
896+ language = lico .language or "en" ,
894897 full_text = lico .text ,
895898 spdx_license_key = lico .spdx_license_key ,
896899 reference_notes = lico .notes ,
You can’t perform that action at this time.
0 commit comments