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

@ -33,7 +33,7 @@ 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 # @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) print(races[0].raceId)
# results = dict() # results = dict()

View File

@ -8,7 +8,7 @@ import re
db = SQLAlchemy() 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): def optional_date(date_string):