Fix metadata import
This commit is contained in:
parent
30bbab2841
commit
c1ab32f8b1
|
@ -171,7 +171,7 @@ class ObsidianVault:
|
|||
blocks_post_events=blocks_post_events,
|
||||
block_events=block_events,
|
||||
).strip(),
|
||||
metadata=contents.frontmatter,
|
||||
**contents.frontmatter,
|
||||
)
|
||||
|
||||
self._save_file_text_to_cache(
|
||||
|
|
|
@ -43,4 +43,4 @@ def test_write_internally():
|
|||
expected_path = Path('test/daily/2020-01-01.md')
|
||||
assert expected_path in vault.internal_file_text_cache
|
||||
|
||||
assert vault.internal_file_text_cache[expected_path].data.startswith(b'---\n')
|
||||
assert vault.internal_file_text_cache[expected_path].data.startswith(b'---\naliases:\n')
|
||||
|
|
Loading…
Reference in New Issue
Block a user