Skip to content

Commit b00b276

Browse files
committed
Load last 20 non-nightly artifacts
1 parent 7d0424a commit b00b276

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

site/src/load.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,16 @@ impl SiteCtxt {
244244
let mut artifacts: Vec<String> = vec![];
245245

246246
// Ignore too old artifacts
247-
for line in artifact_list.lines().rev().take(50) {
248-
if let Some(artifact) = parse_published_artifact_tag(&line) {
249-
if !tested_artifacts.contains(artifact.as_str())
250-
&& !in_progress_artifacts.contains(&artifact)
251-
{
252-
artifacts.push(artifact);
253-
}
247+
for artifact in artifact_list
248+
.lines()
249+
.rev()
250+
.filter_map(parse_published_artifact_tag)
251+
.take(20)
252+
{
253+
if !tested_artifacts.contains(artifact.as_str())
254+
&& !in_progress_artifacts.contains(&artifact)
255+
{
256+
artifacts.push(artifact);
254257
}
255258
}
256259

0 commit comments

Comments
 (0)