Commit 1a53c13f authored by pras's avatar pras

minor change

parent 13fff75e
......@@ -24,6 +24,7 @@ from datetime import datetime
from flask import Flask, request, render_template
app = Flask(__name__)
EVENT_DATE = "2017-11-12"
@app.route("/", methods=["GET", "POST"])
......@@ -52,7 +53,7 @@ def handle_register():
try:
if row_set is None:
insert_query = "insert into leaderboard (display_name, user_email, last_update) values ('{}', '{}', '{}')"
db_cursor.execute(insert_query.format(osm_display_name, user_email, "2017-11-12"))
db_cursor.execute(insert_query.format(osm_display_name, user_email, EVENT_DATE))
db_connection.commit()
message = "Registered. Thanks."
except sqlite3.IntegrityError as ie:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment