Don't set config to default_config before saving

After we create a new journal it should be added to the config file but
if we set "config" to "default_config" then new entry will never make it
jrnl.yaml file
This commit is contained in:
mzfr 2019-11-03 13:53:44 +05:30
parent 440d1dc972
commit b5c4ad7a4a

View file

@ -157,7 +157,6 @@ def create(journal_name, default_file_path=None, config=None):
else: else:
PlainJournal._create(journal_path) PlainJournal._create(journal_path)
config = default_config
save_config(config) save_config(config)
if password: if password:
config['password'] = password config['password'] = password