commit 22f3db115f6e65409686585dec21726d86af2078 from: witcher date: Fri Dec 16 18:45:06 2022 UTC Allow urls to be commented out Lines in the URLs file starting with `#` are filtered out. Implements: https://todo.sr.ht/~witcher/rss-email/17 commit - 61279cd551cd6646abdfe7ba83baee1b3c812318 commit + 22f3db115f6e65409686585dec21726d86af2078 blob - 08122d0dfbebdcc9b4ce95b4c33de3a92e0b3d6a blob + 71b2582db946f14d1e77d93c552355e4bd452be9 --- src/main.rs +++ src/main.rs @@ -43,7 +43,8 @@ async fn main() -> anyhow::Result<()> { ))?, ) .lines() - .map(|l| l.unwrap()); + .map(|l| l.unwrap()) + .filter(|l| !l.starts_with('#')); let db_path = args.database_path.unwrap(); debug!("Establishing connection to database at {:?}", db_path);