fix(scraper): truncate to post count

This commit is contained in:
Matthew Esposito 2024-11-13 16:43:41 -05:00
parent 6a18ea17ec
commit a301afc383

View File

@ -65,6 +65,8 @@ async fn main() {
std::io::stdout().flush().unwrap(); std::io::stdout().flush().unwrap();
} }
posts.truncate(final_count);
match format { match format {
Format::Json => { Format::Json => {
let filename: String = output.unwrap_or_else(|| format!("{sub}.json")); let filename: String = output.unwrap_or_else(|| format!("{sub}.json"));