mirror of
https://github.com/redlib-org/redlib.git
synced 2024-12-06 19:27:17 +01:00
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
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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user