Page MenuHomePhabricator

Incorrect stats on landing page
Closed, ResolvedPublic

Description

The stat X people have taken part in Y contests on the WSContest tool is incorrect as the number of people is taken as the total number of users in the user table, which includes admins and users with no contributions/scores.

Query as in code: SELECT COUNT(*) AS tot FROM users

The number of people (X) should be modified to be the number of people who have made contributions and have a valid score to their name.

Event Timeline

I guess something like SELECT COUNT(DISTINCT user_id) FROM scores would be more what we want?

Made a PR here.

This stat is still a bit ambiguous, but it's still a good quick fix!