This commit is contained in:
2024-02-14 12:34:58 +01:00
parent bb8012fecb
commit 1a19540b30
2 changed files with 3 additions and 3 deletions

View File

@ -30,10 +30,10 @@ def default_statistic(year):
@app.route("/seasons/<year>/<statistic>/")
def seasons(year, statistic):
seasons = db.session.execute(db.select(Season)).all() # For season selector
seasons = db.session.execute(db.select(Season)).all() # For season selector
# @todo
races = db.session.execute(db.select(Race).where(Race.year==year)).all()
races = db.session.execute(db.select(Race).where(Race.year == year)).all()
print(races[0].raceId)
# results = dict()