From 09fcae26d9ffdd5f6bdd12ec18d97953b53375f2 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Thu, 9 Aug 2012 18:42:31 +0200 Subject: [PATCH] Smarter UUID creation for DayOne journals --- jrnl/Journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index 9d4daae6..be53823a 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -308,7 +308,7 @@ class DayOne(Journal): # have a new one! if not hasattr(entry, "uuid"): new_uuid = uuid.uuid1().hex - filename = os.path.join(self.config['journal'], "entries", uuid+".doentry") + filename = os.path.join(self.config['journal'], "entries", new_uuid+".doentry") entry_plist = { 'Creation Date': entry.date, 'Starred': entry.starred if hasattr(entry, 'starred') else False,