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 5858dae commit 559d619Copy full SHA for 559d619
src/fosslight_util/oss_item.py
@@ -82,14 +82,15 @@ def comment(self):
82
return self._comment
83
84
@comment.setter
85
- def comment(self, value):
86
- if not value:
+ def comment(self, new_comment):
+ if not new_comment:
87
self._comment = ""
88
else:
89
if self._comment:
90
- self._comment = f"{self._comment} / {value}"
+ if new_comment.strip() not in self._comment:
91
+ self._comment = f"{self._comment} / {new_comment}"
92
- self._comment = value
93
+ self._comment = new_comment
94
95
96
class FileItem:
0 commit comments