فهرست منبع

Add Google Keep Labels as frontmatter tags

Matthew Bafford 5 سال پیش
والد
کامیت
b02e3127c1
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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(),