showing multiword while hiding examples
This commit is contained in:
@@ -44,6 +44,9 @@ class Example(Editable):
|
||||
def is_collocation(self):
|
||||
return self.get_view_type() == 2
|
||||
|
||||
def is_multiword(self):
|
||||
return self.get_view_type() != 1
|
||||
|
||||
def get_view_type(self):
|
||||
# as per the bosses, these are the rules for different colors
|
||||
if type(self.inner) is CorpusExample:
|
||||
|
||||
Reference in New Issue
Block a user