Spaces:
Runtime error
Runtime error
Commit
·
89fc047
1
Parent(s):
72a8166
Debug
Browse files
main.py
CHANGED
@@ -38,8 +38,10 @@ def get_weeks():
|
|
38 |
# send lines to front end
|
39 |
@app.route('/get_lines')
|
40 |
def get_lines():
|
41 |
-
|
42 |
-
|
|
|
|
|
43 |
|
44 |
# send games of selected week to front end
|
45 |
@app.route('/get_games')
|
|
|
38 |
# send lines to front end
|
39 |
@app.route('/get_lines')
|
40 |
def get_lines():
|
41 |
+
try:
|
42 |
+
return jsonify(lines[str(session.get('selected_week'))])
|
43 |
+
except:
|
44 |
+
return jsonify(lines[str(current_week)])
|
45 |
|
46 |
# send games of selected week to front end
|
47 |
@app.route('/get_games')
|