Spaces:
Sleeping
Sleeping
Download scripts/refresh_injuries.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/refresh_injuries.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/scripts/refresh_injuries.py
-
curl -L -o refresh_injuries.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/refresh_injuries.py
455 Bytes
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app.services.transfermarkt_service import ingest_live_injuries | |
| from app.services.squad_availability_service import build_squad_availability_snapshot | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| if __name__ == "__main__": | |
| ingest_live_injuries() | |
| build_squad_availability_snapshot() | |
| print("✅ Injuries + squad availability refreshed") |