mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
#101 stats - count half-points for pronouns
This commit is contained in:
parent
93c9766241
commit
173baf46f8
@ -73,7 +73,7 @@ router.get('/admin/stats', async (req, res) => {
|
|||||||
if (pronouns[p] === undefined) {
|
if (pronouns[p] === undefined) {
|
||||||
pronouns[p] = 0;
|
pronouns[p] = 0;
|
||||||
}
|
}
|
||||||
pronouns[p]++;
|
pronouns[p] += pr[pronoun] === 1 ? 1 : 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user