diff --git a/server.py b/server.py index f3c87274b..beb3dc49d 100644 --- a/server.py +++ b/server.py @@ -28,8 +28,9 @@ def index(): @app.route('/showSummary',methods=['POST']) def showSummary(): club = [club for club in clubs if club['email'] == request.form['email']] + other_clubs = [club for club in clubs if club['email'] != request.form['email']] if len(club): - return render_template('welcome.html',club=club[0],competitions=competitions), 200 + return render_template('welcome.html',club=club[0],competitions=competitions, clubs=other_clubs), 200 return render_template('index.html'), 401 diff --git a/templates/welcome.html b/templates/welcome.html index ff6b261a2..602e78a23 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -30,6 +30,17 @@