mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Formatting
This commit is contained in:
parent
7fda109e55
commit
897ba57783
1 changed files with 17 additions and 17 deletions
|
@ -31,6 +31,7 @@ except ImportError:
|
|||
import plistlib
|
||||
import uuid
|
||||
|
||||
|
||||
class Journal(object):
|
||||
def __init__(self, **kwargs):
|
||||
self.config = {
|
||||
|
@ -288,6 +289,7 @@ class Journal(object):
|
|||
self.sort()
|
||||
return entry
|
||||
|
||||
|
||||
class DayOne(Journal):
|
||||
"""A special Journal handling DayOne files"""
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -314,7 +316,6 @@ class DayOne(Journal):
|
|||
# we're returning the obvious.
|
||||
return self.entries
|
||||
|
||||
|
||||
def write(self):
|
||||
"""Writes only the entries that have been modified into plist files."""
|
||||
for entry in self.entries:
|
||||
|
@ -331,4 +332,3 @@ class DayOne(Journal):
|
|||
'UUID': new_uuid
|
||||
}
|
||||
plistlib.writePlist(entry_plist, filename)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue