Minor stuff

This commit is contained in:
Óscar M. Lage 2024-10-11 22:54:35 +02:00
parent 2ec7e6cd85
commit c7bc40ba33

View File

@ -105,7 +105,6 @@ func generateBookMarkdown(book Book) error {
// Helper function to update only YAML fields that exist in both the frontmatter and YAML data // Helper function to update only YAML fields that exist in both the frontmatter and YAML data
func updateFrontmatterWithYAML(frontmatter utils.FrontMatter, book Book) utils.FrontMatter { func updateFrontmatterWithYAML(frontmatter utils.FrontMatter, book Book) utils.FrontMatter {
// Update fields (adapt based on your actual Book struct)
frontmatter.Progress = book.Progress frontmatter.Progress = book.Progress
frontmatter.Date = book.Date frontmatter.Date = book.Date
frontmatter.Rate = book.Rate frontmatter.Rate = book.Rate