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()

View File

@ -8,7 +8,7 @@ import re
db = SQLAlchemy()
# Modeling these entities separately should make it easier to add new guess categories, for example team guesses or GP guesses
# Modeling these entities separately should make it easier to add new guess categories, e.g. team guesses or GP guesses
def optional_date(date_string):