From e2b183ddc664aedb9cab4a92e6ca30b86597a8e7 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 3 Feb 2025 20:46:45 -0800 Subject: [PATCH] Add ACX substack demo --- src/demo.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/demo.rs b/src/demo.rs index 8dad419..dc2cae1 100644 --- a/src/demo.rs +++ b/src/demo.rs @@ -70,7 +70,15 @@ pub async fn setup_demo_data(pool: &sqlx::SqlitePool) { ); isidore.categorization = vec!["Webcomic".to_string()]; - let feeds = [bbc_news, xkcd, isidore]; + let mut acx = Feed::new( + "Astral Codex Ten".to_string(), + "https://www.astralcodexten.com/feed".parse().unwrap(), + demo_id, + ); + acx.categorization = vec!["Substack".to_string()]; + + + let feeds = [bbc_news, xkcd, isidore, acx]; for feed in feeds { // TODO: This insert logic is substantially the same as Feed::write_to_database.