Update update-readme.ts

This commit is contained in:
Aleksandr Statciuk 2021-11-16 01:24:28 +03:00
parent 4b6fb9ebb9
commit 0584c75f57

View file

@ -139,6 +139,7 @@ function generateTable(guides: Guide[], header: string[]) {
const rowspan = root && size > 1 ? ` rowspan="${size}"` : ''
let status = '🟢'
if (guide.emptyGuides === guide.channelCount) status = '🔴'
else if (guide.emptyGuides > 0) status = '🟡'
const cell1 = root ? `<td align="left" valign="top" nowrap${rowspan}>${name}</td>` : ''
output += `\t\t<tr>${cell1}<td align="right" nowrap>${guide.channelCount}</td><td align="left" nowrap><code>${guide.url}</code></td><td align="center">${status}</td></tr>\n`
}