1
0

Fix metadata import
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 33s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 30s

This commit is contained in:
Jon Michael Aanes 2024-11-17 17:12:58 +01:00
parent 30bbab2841
commit c1ab32f8b1
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class ObsidianVault:
blocks_post_events=blocks_post_events, blocks_post_events=blocks_post_events,
block_events=block_events, block_events=block_events,
).strip(), ).strip(),
metadata=contents.frontmatter, **contents.frontmatter,
) )
self._save_file_text_to_cache( self._save_file_text_to_cache(

View File

@ -43,4 +43,4 @@ def test_write_internally():
expected_path = Path('test/daily/2020-01-01.md') expected_path = Path('test/daily/2020-01-01.md')
assert expected_path in vault.internal_file_text_cache 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')