bep40 commited on
Commit
23adc8f
·
verified ·
1 Parent(s): c4bf61e

Switch to match_detail_v2 import

Browse files
Files changed (1) hide show
  1. app_v2_entry.py +1 -1
app_v2_entry.py CHANGED
@@ -306,7 +306,7 @@ def api_match_detail(event_id: int, url: str = Query(default=None)):
306
  import sys
307
  if 'match_detail' in sys.modules:
308
  del sys.modules['match_detail']
309
- from match_detail import fetch_match_detail, fetch_match_detail_by_url
310
  if url:
311
  return JSONResponse(fetch_match_detail_by_url(url))
312
  return JSONResponse(fetch_match_detail(event_id))
 
306
  import sys
307
  if 'match_detail' in sys.modules:
308
  del sys.modules['match_detail']
309
+ from match_detail_v2 import fetch_match_detail, fetch_match_detail_by_url
310
  if url:
311
  return JSONResponse(fetch_match_detail_by_url(url))
312
  return JSONResponse(fetch_match_detail(event_id))