mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
Update FolderJournal reference to entry __unicode__ method to __str__
This commit is contained in:
parent
97cf65e516
commit
53c557005c
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class Folder(Journal.Journal):
|
||||||
for e in self.entries:
|
for e in self.entries:
|
||||||
if e.date.year == d.year and e.date.month == d.month and e.date.day == d.day:
|
if e.date.year == d.year and e.date.month == d.month and e.date.day == d.day:
|
||||||
write_entries.append(e)
|
write_entries.append(e)
|
||||||
journal = "\n".join([e.__unicode__() for e in write_entries])
|
journal = "\n".join([e.__str__() for e in write_entries])
|
||||||
with codecs.open(filename, 'w', "utf-8") as journal_file:
|
with codecs.open(filename, 'w', "utf-8") as journal_file:
|
||||||
journal_file.write(journal)
|
journal_file.write(journal)
|
||||||
#look for and delete empty files
|
#look for and delete empty files
|
||||||
|
|
Loading…
Add table
Reference in a new issue