fix(scraper): truncate to post count
Release Build / Rust project - latest (aarch64-unknown-linux-musl) (push) Has been cancelled
Release Build / Rust project - latest (armv7-unknown-linux-musleabihf) (push) Has been cancelled
Release Build / Rust project - latest (x86_64-unknown-linux-musl) (push) Has been cancelled
Rust Build & Publish / build (push) Has been cancelled
Pull Request / cargo test (push) Has been cancelled
Pull Request / cargo fmt --all -- --check (push) Has been cancelled
Pull Request / cargo clippy -- -D warnings (push) Has been cancelled

This commit is contained in:
Matthew Esposito
2024-11-13 16:43:41 -05:00
parent 6a18ea17ec
commit a301afc383
+2
View File
@@ -65,6 +65,8 @@ async fn main() {
std::io::stdout().flush().unwrap();
}
posts.truncate(final_count);
match format {
Format::Json => {
let filename: String = output.unwrap_or_else(|| format!("{sub}.json"));