mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Properly initialise journal files after creating them
This commit is contained in:
parent
cc85d905ca
commit
df82ad1f4d
4 changed files with 36 additions and 16 deletions
|
@ -105,9 +105,8 @@ def decrypt(journal, filename=None):
|
|||
def touch_journal(filename):
|
||||
"""If filename does not exist, touch the file"""
|
||||
if not os.path.exists(filename):
|
||||
log.debug('Creating journal file %s', filename)
|
||||
util.prompt("[Journal created at {0}]".format(filename))
|
||||
open(filename, 'a').close()
|
||||
Journal.PlainJournal._create(filename)
|
||||
|
||||
|
||||
def list_journals(config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue