Update update-readme.ts

This commit is contained in:
Aleksandr Statciuk 2021-10-29 23:54:39 +03:00
parent 6c00f0b7c9
commit e9303a4e27

View file

@ -132,9 +132,9 @@ function generateTable(guides: Guide[], header: string[]) {
for (let guide of guides) {
const size = guides.filter((g: Guide) => g.name === guide.name).length
if (!guide.name) continue
let root = output.indexOf(guide.name) === -1
const rowspan = root && size > 1 ? ` rowspan="${size}"` : ''
const name = `${guide.flag} ${guide.name}`
let root = output.indexOf(name) === -1
const rowspan = root && size > 1 ? ` rowspan="${size}"` : ''
let status = '🟢'
if (guide.emptyGuides === guide.channelCount) status = '🔴'
else if (guide.emptyGuides > 0) status = '🟡'