Explorar el Código

Add Google Keep Labels as frontmatter tags

Matthew Bafford hace 5 años
padre
commit
b02e3127c1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      keep_exporter/export.py

+ 1 - 0
keep_exporter/export.py

@@ -77,6 +77,7 @@ def build_frontmatter(note: gkeepapi._node.Note, markdown: str) -> frontmatter.P
         "parent_id": note.parent_id,
         "sort": note.sort,
         "url": note.url,
+        "tags": [label.name for label in note.labels.all()],
         "timestamps": {
             "created": note.timestamps.created.timestamp(),
             "edited": note.timestamps.edited.timestamp(),