Use zero stars for archived repos

pull/1384/head
Tom Parker-Shemilt 1 year ago
parent f977e3a24b
commit 30b7d33e89

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

Loading…
Cancel
Save