Skip to content

Commit ee37b1d

Browse files
KobzolMark-Simulacrum
authored andcommitted
Do not show patch release data in the dashboard
To make the stable release gaps more evenly spaced.
1 parent d852b29 commit ee37b1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/request_handlers/dashboard.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Re
1414

1515
let mut versions = index
1616
.artifacts()
17-
.filter(|a| a.starts_with("1.") || a.starts_with("beta"))
17+
// Do not consider patch releases, only consider 1.XYZ.0
18+
.filter(|a| (a.starts_with("1.") && a.ends_with(".0")) || a.starts_with("beta"))
1819
.collect::<Vec<_>>();
1920
versions.sort_by(|a, b| {
2021
match (

0 commit comments

Comments
 (0)