Initial support for Day One tag syncing

This commit is contained in:
dejay 2013-07-18 16:31:14 -06:00
parent 02ce7dfbd3
commit 950af5f2e2

View file

@ -341,6 +341,7 @@ class DayOne(Journal):
'Starred': entry.starred if hasattr(entry, 'starred') else False, 'Starred': entry.starred if hasattr(entry, 'starred') else False,
'Entry Text': entry.title+"\n"+entry.body, 'Entry Text': entry.title+"\n"+entry.body,
'Time Zone': get_local_timezone(), '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) plistlib.writePlist(entry_plist, filename)