mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
[Dayone] cut extended attributes for now
This commit is contained in:
parent
eed1bd3cb3
commit
b8dbf84753
2 changed files with 1 additions and 69 deletions
|
@ -61,22 +61,6 @@ class YAMLExporter(TextExporter):
|
|||
dayone_attributes = ''
|
||||
if hasattr(entry, "uuid"):
|
||||
dayone_attributes += 'uuid: ' + entry.uuid + '\n'
|
||||
if hasattr(entry, 'creator_device_agent') or \
|
||||
hasattr(entry, 'creator_generation_date') or \
|
||||
hasattr(entry, 'creator_host_name') or \
|
||||
hasattr(entry, 'creator_os_agent') or \
|
||||
hasattr(entry, 'creator_software_agent'):
|
||||
dayone_attributes += 'creator:\n'
|
||||
if hasattr(entry, 'creator_device_agent'):
|
||||
dayone_attributes += ' device agent: {}\n'.format(entry.creator_device_agent)
|
||||
if hasattr(entry, 'creator_generation_date'):
|
||||
dayone_attributes += ' generation date: {}\n'.format(str(entry.creator_generation_date))
|
||||
if hasattr(entry, 'creator_host_name'):
|
||||
dayone_attributes += ' host name: {}\n'.format(entry.creator_host_name)
|
||||
if hasattr(entry, 'creator_os_agent'):
|
||||
dayone_attributes += ' os agent: {}\n'.format(entry.creator_os_agent)
|
||||
if hasattr(entry, 'creator_software_agent'):
|
||||
dayone_attributes += ' software agent: {}\n'.format(entry.creator_software_agent)
|
||||
|
||||
return "title: {title}\ndate: {date}\nstared: {stared}\ntags: {tags}\n{dayone} {body} {space}".format(
|
||||
date = date_str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue