Fix bug where genders by sport do not report correctly
parent
2ecb26ca3c
commit
4f3581b1e5
|
@ -15,8 +15,8 @@ const FEMALE = new Gender("female");
|
||||||
|
|
||||||
|
|
||||||
async function retrieveBySport(sportID) {
|
async function retrieveBySport(sportID) {
|
||||||
const query = `SELECT gender
|
const query = `SELECT DISTINCT(gender)
|
||||||
from scores.divisions
|
FROM scores.divisions
|
||||||
WHERE sport_id = $1;`;
|
WHERE sport_id = $1;`;
|
||||||
const table = await database.executeQuery(query, [sportID]);
|
const table = await database.executeQuery(query, [sportID]);
|
||||||
|
|
||||||
|
|
Reference in New Issue