diff --git a/source/app/metrics.mjs b/source/app/metrics.mjs index ac349384..50f859ae 100644 --- a/source/app/metrics.mjs +++ b/source/app/metrics.mjs @@ -22,7 +22,7 @@ const template = q.template || conf.settings.templates.default const repositories = Math.max(0, Number(q.repositories)) || conf.settings.repositories || 100 const pending = [] - const s = (value, end = "") => value > 1 ? {y:"ies", "":"s"}[end] : end + const s = (value, end = "") => value !== 1 ? {y:"ies", "":"s"}[end] : end if ((!(template in Templates))||(!(template in conf.templates))||((conf.settings.templates.enabled.length)&&(!conf.settings.templates.enabled.includes(template)))) throw new Error("unsupported template") const {image, style, fonts} = conf.templates[template] @@ -274,4 +274,4 @@ }[key]??{})] )), }) - } \ No newline at end of file + } diff --git a/source/templates/classic/image.svg b/source/templates/classic/image.svg index 613d0302..d01f8b8e 100644 --- a/source/templates/classic/image.svg +++ b/source/templates/classic/image.svg @@ -33,7 +33,7 @@ <% if (user.isHireable) { %>