diff --git a/papis_extract/annotation.py b/papis_extract/annotation.py index 74342da..9c101e4 100644 --- a/papis_extract/annotation.py +++ b/papis_extract/annotation.py @@ -28,9 +28,9 @@ class Annotation: file: str colors: tuple[float, float, float] = field(default_factory=lambda: (0.0, 0.0, 0.0)) content: str = "" + note: str = "" page: int = 0 tag: str = "" - text: str = "" type: str = "Highlight" minimum_similarity_color: float = 1.0 @@ -43,8 +43,8 @@ class Annotation: """ data = { "file": self.file, - "quote": self.text, - "note": self.content, + "quote": self.content, + "note": self.note, "page": self.page, "tag": self.tag, "type": self.type, diff --git a/papis_extract/extractors/pdf.py b/papis_extract/extractors/pdf.py index ac39184..4bf1228 100644 --- a/papis_extract/extractors/pdf.py +++ b/papis_extract/extractors/pdf.py @@ -41,8 +41,8 @@ class PdfExtractor: ) a = Annotation( file=str(filename), - text=quote or "", - content=note or "", + content=quote or "", + note=note or "", colors=col, type=annot.type[1], page=(page.number or 0) + 1,