mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Check config if FolderJournal and treat as so
This commit is contained in:
parent
fd8d64098f
commit
e5470cf793
1 changed files with 3 additions and 0 deletions
|
@ -434,6 +434,9 @@ def open_journal(journal_name, config, legacy=False):
|
||||||
if not config["encrypt"]:
|
if not config["encrypt"]:
|
||||||
if legacy:
|
if legacy:
|
||||||
return LegacyJournal(journal_name, **config).open()
|
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()
|
return PlainJournal(journal_name, **config).open()
|
||||||
|
|
||||||
from . import EncryptedJournal
|
from . import EncryptedJournal
|
||||||
|
|
Loading…
Add table
Reference in a new issue