ref: Improve Book instantiation

This commit is contained in:
2025-09-09 17:38:44 +03:00
parent c054a0309d
commit bf81b5d8f4
4 changed files with 64 additions and 36 deletions

View File

@@ -90,7 +90,7 @@ impl From<&Book> for Entry {
Entry{
title: book.title.clone(),
id: book.id.to_string().clone(),
updated: book.updated.clone(),
updated: book.updated.to_rfc3339(),
author: book.author.clone().into_iter().map(|a| a.into()).collect(),
language: (!book.language.is_empty()).then(|| book.language.clone()),
issued: (!book.published_at.is_empty()).then(|| book.published_at.clone()),