mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
parent
6826f07b6e
commit
13631b9a68
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class Template(object):
|
|||
def from_file(cls, filename):
|
||||
with open(filename) as f:
|
||||
front_matter, body = f.read().strip("-\n").split("---", 2)
|
||||
front_matter = yaml.load(front_matter)
|
||||
front_matter = yaml.load(front_matter, Loader=yaml.FullLoader)
|
||||
template = cls(body)
|
||||
template.__dict__.update(front_matter)
|
||||
return template
|
||||
|
|
|
@ -141,7 +141,7 @@ def load_config(config_path):
|
|||
"""Tries to load a config file from YAML.
|
||||
"""
|
||||
with open(config_path) as f:
|
||||
return yaml.load(f)
|
||||
return yaml.load(f, Loader=yaml.FullLoader)
|
||||
|
||||
|
||||
def scope_config(config, journal_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue