Skip to content

Commit

Permalink
fix(scraper): truncate to post count
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed Nov 13, 2024
1 parent 6a18ea1 commit a301afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scraper/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit a301afc

Please sign in to comment.