mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
allow trailing \ for DayOne journals
https://github.com/maebert/jrnl#dayone-integration sort of infers that it in the .jrnl_config it should end in a / but prior to this, if there was a trailing / then jrnl thought it was looking at a text type journal.
This commit is contained in:
parent
f79f7cf849
commit
06e664d78a
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,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