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:
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…
Reference in New Issue
Block a user