matches from DB

This commit is contained in:
2025-06-12 16:23:14 +02:00
parent 4e8cb48c82
commit a25be482b0

View File

@@ -3,7 +3,7 @@ import lewy_api_v1
import lewy_db
import lewy_globals
import json
from lewy_api_v1 import get_matches
def get_lewy_stats():
return {
'all_time_stats': {
@@ -60,9 +60,9 @@ def index():
def mecze():
# Możesz dostarczyć szczegóły dotyczące meczów
selected_date = request.args.get("date", '2025')
with open("static/lewandowski_matches.json", "r") as file:
data = json.load(file)
matches = data["data"]
#with open("static/lewandowski_matches.json", "r") as file:
# data = json.load(file)
status, msg, matches = get_matches(None)
return render_template('matches.html', matches=matches, selected_date=selected_date)