From 950af5f2e2e36c81ae96eec4fdb7ed0ffc84cf63 Mon Sep 17 00:00:00 2001 From: dejay Date: Thu, 18 Jul 2013 16:31:14 -0600 Subject: [PATCH] Initial support for Day One tag syncing --- jrnl/Journal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index d4e733ea..02e3357e 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -341,6 +341,7 @@ class DayOne(Journal): 'Starred': entry.starred if hasattr(entry, 'starred') else False, 'Entry Text': entry.title+"\n"+entry.body, 'Time Zone': get_local_timezone(), - 'UUID': new_uuid + 'UUID': new_uuid, + 'Tags': [tag for tag in entry.tags] if entry.parse_tags() and hasattr(entry, 'tags') else False } plistlib.writePlist(entry_plist, filename)