Add ACX substack demo
This commit is contained in:
parent
739406336b
commit
e2b183ddc6
10
src/demo.rs
10
src/demo.rs
@ -70,7 +70,15 @@ pub async fn setup_demo_data(pool: &sqlx::SqlitePool) {
|
|||||||
);
|
);
|
||||||
isidore.categorization = vec!["Webcomic".to_string()];
|
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 {
|
for feed in feeds {
|
||||||
// TODO: This insert logic is substantially the same as Feed::write_to_database.
|
// TODO: This insert logic is substantially the same as Feed::write_to_database.
|
||||||
|
Loading…
Reference in New Issue
Block a user