1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-12-07 11:13:18 +02:00

Use zero stars for archived repos

This commit is contained in:
Tom Parker-Shemilt 2022-12-14 11:23:41 +00:00
parent f977e3a24b
commit 30b7d33e89

View File

@ -207,7 +207,7 @@ async fn get_stars(github_url: &str) -> Option<u32> {
};
if data.archived {
warn!("{} is archived, so ignoring stars", github_url);
return None;
return Some(0);
}
return Some(data.stargazers_count);
}