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);
}