hotfix: fixes /mecze endpoint not working (cause of a wrong API call)

This commit is contained in:
2025-06-12 20:43:22 +02:00
parent e80ee6bf8f
commit e373c6b274
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ def stats():
return 200, "ok", data_to_send
# GET /api/v1/matches
def get_matches(r, id_zawodnika: str | None = None):
def get_matches(r = None, id_zawodnika: str | None = None):
"""
Zwraca mecze.
Przykład wywołania:

View File

@@ -62,7 +62,7 @@ def mecze():
selected_date = request.args.get("date", '2025')
#with open("static/lewandowski_matches.json", "r") as file:
# data = json.load(file)
status, msg, matches = get_matches(None)
status, msg, matches = get_matches(None, id_zawodnika=1)
return render_template('matches.html', matches=matches, selected_date=selected_date)