From a3ff63c090b27724e9a8d0a1ebb18abc32ecc539 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 13 Oct 2021 06:03:12 +0300 Subject: [PATCH] Update create-matrix.js --- scripts/create-matrix.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/create-matrix.js b/scripts/create-matrix.js index 7acb73a6..75fabcbf 100644 --- a/scripts/create-matrix.js +++ b/scripts/create-matrix.js @@ -8,16 +8,17 @@ file ]) .then(files => { const matrix = { - site: [], - country: [] + guide: [] } files.forEach(filename => { const channelsFile = file.read(filename) const parsed = parser.parseChannels(channelsFile) parsed.groups.forEach(group => { - matrix.site.push(parsed.site) - matrix.country.push(group.country.toLowerCase()) + matrix.guide.push({ + site: parsed.site, + country: group.country.toLowerCase() + }) }) })