bep40 commited on
Commit
556ce05
·
verified ·
1 Parent(s): 2c431d7

Upload static/main_patch.py

Browse files
Files changed (1) hide show
  1. static/main_patch.py +10 -0
static/main_patch.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # PATCH for main.py - add the detail route
2
+ # Apply this by adding after line 397 in main.py:
3
+ #
4
+ # @app.get("/api/match/{event_id}/detail")
5
+ # def api_match_detail(event_id:int, url:str=Query(default=None)):
6
+ # """Get match detail. Optional 'url' param with full bongda URL (with slug) for HTML scraping."""
7
+ # from match_detail import fetch_match_detail, fetch_match_detail_by_url
8
+ # if url:
9
+ # return JSONResponse(fetch_match_detail_by_url(url))
10
+ # return JSONResponse(fetch_match_detail(event_id))