Skip to content
Snippets Groups Projects
Commit 2f875785 authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

Légère correction query

parent 96a3ea9b
Branches
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ const dbConfig = { ...@@ -15,7 +15,7 @@ const dbConfig = {
function getClassementIndividuel(req, res) { function getClassementIndividuel(req, res) {
var con = mysql.createConnection(dbConfig); var con = mysql.createConnection(dbConfig);
var query = "SELECT Participant.id as id, Participant.name as name, score, Equipe.name AS equipe_name FROM Score JOIN Participant ON Participant.id=Score.participantId JOIN Equipe ON Score.equipeId = Equipe.id WHERE Score.deleted = 0 AND Participant.deleted=0 ORDER BY score DESC;" var query = "SELECT Participant.id as id, Participant.name as name, score, Equipe.name AS equipe_name FROM Score JOIN Participant ON Participant.id=Score.participantId JOIN Equipe ON Score.equipeId = Equipe.id WHERE (Score.deleted = 0 AND Participant.deleted=0 AND Participant.id != 'sprint') ORDER BY score DESC;"
con.connect(); con.connect();
con.query(query, (err, result) => { con.query(query, (err, result) => {
if (err) { if (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment