increase allowed range for prediction

This commit is contained in:
fram3d 2023-10-05 02:29:39 +02:00
parent 5604fac1b2
commit 10aeabdb83
Signed by: fram3d
GPG Key ID: 938920E709EEA32A

View File

@ -5,7 +5,6 @@ from freeriders.models import Tickets
from datetime import datetime from datetime import datetime
import time import time
@app.route('/sms', methods=['GET']) @app.route('/sms', methods=['GET'])
def sms(): def sms():
if request.method == 'GET': if request.method == 'GET':
@ -29,7 +28,7 @@ def sms():
@app.route('/submit', methods=['POST', 'GET']) @app.route('/submit', methods=['POST', 'GET'])
def submit(): def submit():
PREDICTTIMERANGE = 60 * 80 PREDICTTIMERANGE = 60 * 60 * 24
if request.method == 'GET': if request.method == 'GET':
return render_template('submit.html') return render_template('submit.html')
elif request.method == 'POST': elif request.method == 'POST':