Przeglądaj źródła

Add Google Keep Labels as frontmatter tags (#12)

Matthew Bafford 5 lat temu
rodzic
commit
a300746403
1 zmienionych plików z 1 dodań i 0 usunięć
  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(),