fix: fix meta processing in pages.rs
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -113,7 +113,11 @@ fn build_item_list(conn: &Connection, params: &ListQueryParams, columns: &[Colum
|
|||||||
let item_id = item.id.unwrap_or(0);
|
let item_id = item.id.unwrap_or(0);
|
||||||
let tags = tags_map.get(&item_id).cloned().unwrap_or_default();
|
let tags = tags_map.get(&item_id).cloned().unwrap_or_default();
|
||||||
let meta: HashMap<String, String> = meta_map.get(&item_id)
|
let meta: HashMap<String, String> = meta_map.get(&item_id)
|
||||||
.map(|metas| metas.iter().map(|m| (m.name.clone(), m.value.clone())).collect())
|
.map(|metas| {
|
||||||
|
metas.iter()
|
||||||
|
.map(|meta| (meta.name.clone(), meta.value.clone()))
|
||||||
|
.collect()
|
||||||
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
html.push_str("<tr>");
|
html.push_str("<tr>");
|
||||||
|
|||||||
Reference in New Issue
Block a user