mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Merge 38d2734c96
into 8ed2e36669
This commit is contained in:
commit
a2932daa12
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ def cli():
|
|||
mode_compose, mode_export = guess_mode(args, config)
|
||||
|
||||
# open journal file or folder
|
||||
if os.path.isdir(config['journal']) and config['journal'].endswith(".dayone"):
|
||||
|
||||
|
||||
if os.path.isdir(config['journal']) and ( config['journal'].endswith(".dayone") or \
|
||||
config['journal'].endswith(".dayone/")):
|
||||
journal = Journal.DayOne(**config)
|
||||
else:
|
||||
journal = Journal.Journal(**config)
|
||||
|
|
Loading…
Add table
Reference in a new issue