Increase short content threshold to 800 chars

This commit is contained in:
Tyler Hallada 2024-09-08 20:38:12 -04:00
parent 27467b462e
commit 236f4a5ef1

View File

@ -142,7 +142,7 @@ async fn generate_and_update_entry(
console_log!("entry id: {}", entry.id); console_log!("entry id: {}", entry.id);
console_log!("entry title: {}", entry.title); console_log!("entry title: {}", entry.title);
console_log!("entry url: {}", entry.url); console_log!("entry url: {}", entry.url);
if entry.content.trim().is_empty() || entry.content.len() < 500 { if entry.content.trim().is_empty() || entry.content.len() < 800 {
console_log!("skipping entry due to empty content or short content length"); console_log!("skipping entry due to empty content or short content length");
return Ok(()); return Ok(());
} }