fix(scraper): truncate to post count
This commit is contained in:
parent
6a18ea17ec
commit
a301afc383
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user