quick cleanup

This commit is contained in:
Ozbolt Menegatti 2020-02-03 07:04:24 +01:00
parent 0bc7ea0c4b
commit 6f3b5aeb5b
2 changed files with 3 additions and 9 deletions

View File

@ -20,4 +20,7 @@
@black: #111;
// added a few for this usecase
@darkpink: #cc3366;
@darkred: #860a03;
@translation-color: #3366ee;
@label-color: #387434;

View File

@ -22,13 +22,4 @@ class Sense(Editable):
def merge_labels(self):
return ", ".join(val for _, val in self.labels)
def example_clusters(self):
result = set()
for ex in self.examples:
cluster = ex.get_cluster()
if cluster is not None:
result.add(cluster)
return sorted(result, key=lambda x: x)