diff --git a/database/scores/genders.js b/database/scores/genders.js index b59bdb0..17e3ff2 100644 --- a/database/scores/genders.js +++ b/database/scores/genders.js @@ -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]);