Spaces:
Runtime error
Runtime error
tracinginsights
commited on
Commit
·
eecdf06
1
Parent(s):
3c64e6b
Update main.py
Browse files
main.py
CHANGED
@@ -249,7 +249,7 @@ def sessions_available(year: int, event: str | int) -> any:
|
|
249 |
@functools.cache
|
250 |
@app.get("/{year}/{event}/{session}", response_model=None)
|
251 |
def session_drivers(year: int, event: str | int, session: str) -> any:
|
252 |
-
fastf1.Cache.enable_cache('cache')
|
253 |
# get drivers available for a given year, event and session
|
254 |
f1session = fastf1.get_session(year, event, session)
|
255 |
api_path = f1session.api_path
|
|
|
249 |
@functools.cache
|
250 |
@app.get("/{year}/{event}/{session}", response_model=None)
|
251 |
def session_drivers(year: int, event: str | int, session: str) -> any:
|
252 |
+
# fastf1.Cache.enable_cache('cache')
|
253 |
# get drivers available for a given year, event and session
|
254 |
f1session = fastf1.get_session(year, event, session)
|
255 |
api_path = f1session.api_path
|