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

fix query

parent a19f1d1f
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ function getClassementEquipe(req, res) { ...@@ -52,7 +52,7 @@ function getClassementEquipe(req, res) {
function getSprint(req, res) { function getSprint(req, res) {
var con = mysql.createConnection(dbConfig); var con = mysql.createConnection(dbConfig);
var query = "Equipe.name as name,score FROM Score JOIN Equipe ON Equipe.id=Score.equipeId WHERE (Equipe.deleted = 0 AND (Score.deleted = 0 AND Score.participantId = 'sprint')) ORDER BY score DESC;" var query = "Equipe.name as name,score FROM Score JOIN Equipe ON Equipe.id=Score.equipeId WHERE (Equipe.deleted = 0 AND (Score.deleted = 0 AND Score.ParticipantId = 'sprint')) ORDER BY score DESC;"
con.connect(); con.connect();
con.query(query, (err, result) => { con.query(query, (err, result) => {
if (err) { if (err) {
......
...@@ -21,8 +21,6 @@ function Kilometrage () { ...@@ -21,8 +21,6 @@ function Kilometrage () {
); );
const [dist, setDist] = useState(""); const [dist, setDist] = useState("");
console.log(Date.now());
function unlock (nameEntry, assoEntry, distanceEntry) { function unlock (nameEntry, assoEntry, distanceEntry) {
var s = new Boolean(true); var s = new Boolean(true);
if ((nameEntry != "") && (assoEntry != "") && (distanceEntry != "")) { if ((nameEntry != "") && (assoEntry != "") && (distanceEntry != "")) {
...@@ -55,7 +53,8 @@ function Kilometrage () { ...@@ -55,7 +53,8 @@ function Kilometrage () {
<MDBIcon icon="user-alt" className="mr-1" /> <MDBIcon icon="user-alt" className="mr-1" />
</MDBCol> </MDBCol>
<MDBCol lg="11" size="10"> <MDBCol lg="11" size="10">
<SearchNom handleChange={(e) => {setNom(e)}} /> <SearchNom handleChange={(e) => {setNom(e);
console.log(Date.now());}} />
</MDBCol> </MDBCol>
</MDBRow> </MDBRow>
<MDBRow> <MDBRow>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment