From 30b7d33e890dbfe98e0dab35644b48764cd46c24 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Wed, 14 Dec 2022 11:23:41 +0000 Subject: [PATCH] Use zero stars for archived repos --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 63fc8d7..eca3bca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -207,7 +207,7 @@ async fn get_stars(github_url: &str) -> Option { }; if data.archived { warn!("{} is archived, so ignoring stars", github_url); - return None; + return Some(0); } return Some(data.stargazers_count); }