[chronojump-server] Minor changes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Minor changes
- Date: Thu, 11 May 2017 16:19:26 +0000 (UTC)
commit 85568a4b89e3e592470e02caf04c740c3c4cf225
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu May 11 18:16:35 2017 +0200
Minor changes
chronojump-flask/chronojump_server.py | 14 +++++++-------
chronojump-flask/static/js/js.js | 1 +
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/chronojump-flask/chronojump_server.py b/chronojump-flask/chronojump_server.py
index 7da453f..94d978a 100644
--- a/chronojump-flask/chronojump_server.py
+++ b/chronojump-flask/chronojump_server.py
@@ -14,9 +14,9 @@ mysql.init_app(app)
def getHeader(pageTitle):
- headerPre="<div id=\"textbox\"><p class=\"topalignleft\"><b>";
- headerPost="</b></p><p class=\"topalignright\"><a href=\"/\">Inici</a></p></div><div style=\"clear:
both;\"></div>";
- return headerPre + pageTitle + headerPost;
+ headerPre="<div id=\"textbox\"><p class=\"topalignleft\"><b>"
+ headerPost="</b></p><p class=\"topalignright\"><a href=\"/\">Inici</a></p></div><div style=\"clear:
both;\"></div>"
+ return headerPre + pageTitle + headerPost
@app.route('/')
def main():
@@ -26,7 +26,7 @@ def main():
#call:
#http://192.168.200.1:5000/results
@app.route("/results")
-def Sets():
+def Results():
date = request.args.get('date') #days
personId = request.args.get('pId')
stationId = request.args.get('sId')
@@ -97,7 +97,7 @@ def player_add_submit():
if weight is None or weight == "" or weight == 0:
msg += " [Falta el pes] "
if height is None or height == "" or height == 0:
- msg += " [Falta al¸ada] "
+ msg += " [Falta altura] "
if msg != "":
return render_template("player_add_result.html", header = getHeader("Afegir jugador"),
added=False, msg = msg, name=name, weight=weight, height=height, rfid="")
@@ -106,7 +106,7 @@ def player_add_submit():
cursor = db.cursor()
#2 check if person exists
- cursor.execute("SELECT * FROM person WHERE name = '" + name + "'");
+ cursor.execute("SELECT * FROM person WHERE name = '" + name + "'")
rows = cursor.fetchall()
if rows:
msg = "Error, ja existeix el jugador: " + name
@@ -134,7 +134,7 @@ def player_add_submit():
#4 check if RFID exists
- cursor.execute("SELECT * FROM person WHERE rfid = '" + rfid + "'");
+ cursor.execute("SELECT * FROM person WHERE rfid = '" + rfid + "'")
rows = cursor.fetchall()
if rows:
msg = "Error, ja existeix el rfid: " + rfid
diff --git a/chronojump-flask/static/js/js.js b/chronojump-flask/static/js/js.js
index cbc9f73..7b3a978 100644
--- a/chronojump-flask/static/js/js.js
+++ b/chronojump-flask/static/js/js.js
@@ -1,3 +1,4 @@
+/* unused */
function showDiv() {
document.getElementById('hiddenDiv').style.display = "block";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]