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

fix query

parent a19f1d1f
Branches
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ function getClassementEquipe(req, res) {
function getSprint(req, res) {
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.query(query, (err, result) => {
if (err) {
......
......@@ -21,8 +21,6 @@ function Kilometrage () {
);
const [dist, setDist] = useState("");
console.log(Date.now());
function unlock (nameEntry, assoEntry, distanceEntry) {
var s = new Boolean(true);
if ((nameEntry != "") && (assoEntry != "") && (distanceEntry != "")) {
......@@ -55,7 +53,8 @@ function Kilometrage () {
<MDBIcon icon="user-alt" className="mr-1" />
</MDBCol>
<MDBCol lg="11" size="10">
<SearchNom handleChange={(e) => {setNom(e)}} />
<SearchNom handleChange={(e) => {setNom(e);
console.log(Date.now());}} />
</MDBCol>
</MDBRow>
<MDBRow>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment