Check config if FolderJournal and treat as so

This commit is contained in:
Jonathan van der Steege 2022-05-23 21:59:35 +02:00
parent fd8d64098f
commit e5470cf793

View file

@ -434,6 +434,9 @@ def open_journal(journal_name, config, legacy=False):
if not config["encrypt"]:
if legacy:
return LegacyJournal(journal_name, **config).open()
if config["journal"].endswith("/") or config["journal"].endswith("\\"):
from . import FolderJournal
return FolderJournal.Folder(journal_name, **config).open()
return PlainJournal(journal_name, **config).open()
from . import EncryptedJournal