We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e563a7 commit 6fc5af2Copy full SHA for 6fc5af2
src/fosslight_source/_scan_item.py
@@ -71,10 +71,10 @@ def licenses(self, value):
71
if value:
72
max_length_exceed = False
73
for new_lic in value:
74
+ if len(new_lic) > MAX_LICENSE_LENGTH:
75
+ new_lic = new_lic[:MAX_LICENSE_LENGTH]
76
+ max_length_exceed = True
77
if new_lic not in self._licenses:
- if len(new_lic) > MAX_LICENSE_LENGTH:
- new_lic = new_lic[:MAX_LICENSE_LENGTH]
- max_length_exceed = True
78
self._licenses.append(new_lic)
79
if len(",".join(self._licenses)) > MAX_LICENSE_TOTAL_LENGTH:
80
self._licenses.remove(new_lic)
0 commit comments