hotfix: fixes /mecze endpoint not working (cause of a wrong API call)
This commit is contained in:
@@ -95,7 +95,7 @@ def stats():
|
|||||||
return 200, "ok", data_to_send
|
return 200, "ok", data_to_send
|
||||||
|
|
||||||
# GET /api/v1/matches
|
# 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.
|
Zwraca mecze.
|
||||||
Przykład wywołania:
|
Przykład wywołania:
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ def mecze():
|
|||||||
selected_date = request.args.get("date", '2025')
|
selected_date = request.args.get("date", '2025')
|
||||||
#with open("static/lewandowski_matches.json", "r") as file:
|
#with open("static/lewandowski_matches.json", "r") as file:
|
||||||
# data = json.load(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)
|
return render_template('matches.html', matches=matches, selected_date=selected_date)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user