Fix bug where genders by sport do not report correctly

main
sudoer777 2021-11-26 16:16:01 -07:00
parent 2ecb26ca3c
commit 4f3581b1e5
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ const FEMALE = new Gender("female");
async function retrieveBySport(sportID) {
const query = `SELECT gender
from scores.divisions
const query = `SELECT DISTINCT(gender)
FROM scores.divisions
WHERE sport_id = $1;`;
const table = await database.executeQuery(query, [sportID]);