From 426a89cfb27e753f11f77e321ee4b6d326ff3ff0 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 29 Jul 2018 19:27:12 -0400 Subject: [PATCH] Filter issues-- only return open issues. --- scripts/games/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/games/app.js b/scripts/games/app.js index 0101993..f053acb 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -64,7 +64,7 @@ async function run() { // Reverse the testcases so the most recent ones show up top. x.testcases = x.testcases.reverse() - x.issues = x.issues || [] + x.issues = x.issues.filter(x => x.state === 'open') || [] // Copy the boxart for the game. fs.copySync(`${fsPathCode}/${x.id}/boxart.png`, `${fsPathHugoBoxart}/${x.id}.png`);