mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Use 'version' in configs
This commit is contained in:
parent
1f73d28147
commit
0a19701ae9
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ def module_exists(module_name):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
default_config = {
|
default_config = {
|
||||||
'jrnl_version': __version__,
|
'version': __version__,
|
||||||
'journals': {
|
'journals': {
|
||||||
"default": JOURNAL_FILE_PATH
|
"default": JOURNAL_FILE_PATH
|
||||||
},
|
},
|
||||||
|
@ -78,7 +78,7 @@ def load_or_install_jrnl():
|
||||||
if os.path.exists(config_path):
|
if os.path.exists(config_path):
|
||||||
config = util.load_config(CONFIG_FILE_PATH)
|
config = util.load_config(CONFIG_FILE_PATH)
|
||||||
upgrade_config(config)
|
upgrade_config(config)
|
||||||
upgrade.upgrade_jrnl_if_necessary()
|
upgrade.upgrade_jrnl_if_necessary(CONFIG_FILE_PATH)
|
||||||
return config
|
return config
|
||||||
else:
|
else:
|
||||||
install()
|
install()
|
||||||
|
|
Loading…
Add table
Reference in a new issue