Adress a couple of issues (#58)

This commit was merged in pull request #58.
This commit is contained in:
EmmaKnijn
2022-07-17 23:43:14 +02:00
committed by GitHub
parent af570c7769
commit b3052fe57b
3 changed files with 20 additions and 3 deletions

View File

@@ -157,7 +157,8 @@ local function createPage(node)
row.remaining = math.max(0, row.requested - row.crafted)
--_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted)
row.status = (row.status or '') ..
string.format(' %d of %d', row.crafted + row.total, row.total + row.requested)
row.total = row.total or 0
string.format(' %d of %d', row.crafted + row.total, row.total + row.requested)
else
row.displayName = ' ' .. row.displayName
row.status = (row.status or '') .. string.format(' %d of %d', row.count, row.total)