design update & bug fix

main
Valentin 2024-01-23 20:28:38 +01:00
parent 90ed4195ae
commit 77b2561a87
2 changed files with 0 additions and 22 deletions

5
app.py
View File

@ -208,11 +208,6 @@ def delTeamRoute(idTeam):
return redirect("/login", code=302)
@app.route('/events/<int:user_id>')
def api_events(user_id):
events = getUserMatches(user_id)
return render_template('events.html', events=events)
@app.route('/calendar/<int:user_id>.ics')
def generate_ical_feed(user_id):
events = getUserMatches(user_id)

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Events</title>
</head>
<body>
<h1>API Events</h1>
<ul>
{% for event in events %}
<li>{{ event }}</li>
{% endfor %}
</ul>
</body>
</html>