Spaces:
Running
Running
Download static/main_patch.py from bep40/VNEWS: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/bep40/VNEWS/resolve/refs%2Fpr%2F7/static/main_patch.py
- Command line
-
hf download hf://spaces/bep40/VNEWS@refs/pr/7/static/main_patch.py
-
curl -L -o main_patch.py https://huggingface.co/spaces/bep40/VNEWS/resolve/refs%2Fpr%2F7/static/main_patch.py
517 Bytes
| # PATCH for main.py - add the detail route | |
| # Apply this by adding after line 397 in main.py: | |
| # | |
| # @app.get("/api/match/{event_id}/detail") | |
| # def api_match_detail(event_id:int, url:str=Query(default=None)): | |
| # """Get match detail. Optional 'url' param with full bongda URL (with slug) for HTML scraping.""" | |
| # from match_detail import fetch_match_detail, fetch_match_detail_by_url | |
| # if url: | |
| # return JSONResponse(fetch_match_detail_by_url(url)) | |
| # return JSONResponse(fetch_match_detail(event_id)) | |