mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fix for #332
This commit is contained in:
parent
07fbf73dee
commit
bf2cdc4995
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,7 @@ import os
|
|||
import re
|
||||
from datetime import datetime
|
||||
import time
|
||||
import fnmatch
|
||||
import plistlib
|
||||
import pytz
|
||||
import uuid
|
||||
|
@ -28,6 +29,10 @@ class DayOne(Journal.Journal):
|
|||
|
||||
def open(self):
|
||||
filenames = [os.path.join(self.config['journal'], "entries", f) for f in os.listdir(os.path.join(self.config['journal'], "entries"))]
|
||||
filenames = []
|
||||
for root, dirnames, f in os.walk(self.config['journal']):
|
||||
for filename in fnmatch.filter(f, '*.doentry'):
|
||||
filenames.append(os.path.join(root, filename))
|
||||
self.entries = []
|
||||
for filename in filenames:
|
||||
with open(filename, 'rb') as plist_entry:
|
||||
|
|
Loading…
Add table
Reference in a new issue