Add --post-count option

This commit is contained in:
Marc Plano-Lesay 2025-05-02 13:05:40 +10:00
parent bdcc0def42
commit a91e243ecc
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
3 changed files with 20 additions and 3 deletions

View file

@ -82,7 +82,9 @@ async fn main() -> Result<()> {
let reddit_client = RedditClient::new();
let mut user_posts = MultiMap::new();
for username in unique_usernames {
let submissions = reddit_client.fetch_user_submissions(&username).await?;
let submissions = reddit_client
.fetch_user_submissions(&username, args.post_count)
.await?;
user_posts.insert_many(username, submissions);
}