fix: Tag automation on tag creation
Tagging by color only worked on manually invoking the `annotation.color = ()` setter. Now it works on initial instance creation.
This commit is contained in:
parent
333bd279b9
commit
f6c0189529
1 changed files with 2 additions and 2 deletions
|
@ -42,11 +42,11 @@ class Annotation:
|
|||
) -> None:
|
||||
self.minimum_similarity_color = minimum_similarity_color
|
||||
self.file = file
|
||||
self.color = color
|
||||
self._color = color
|
||||
self.content = content
|
||||
self.note = note
|
||||
self.page = page
|
||||
self.tag = tag
|
||||
self.tag = tag or self._tag_from_colorname(self.colorname or "")
|
||||
self.type = type
|
||||
|
||||
def format(self, formatting: str, doc: Document = Document()):
|
||||
|
|
Loading…
Reference in a new issue