File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,17 @@ export const lbaoPredictorApi = async (
1313 users : { data_region : string ; username : string } [ ] ,
1414 retry = 5
1515) : Promise < LbaoPredictorType [ ] > => {
16- const res = await fetch ( 'https://lccn.lbao.site/predict_records' , {
17- method : 'POST' ,
18- body : JSON . stringify ( {
19- contest_name,
20- users,
21- } ) ,
22- headers : { 'content-type' : 'application/json' } ,
23- } )
16+ const res = await fetch (
17+ 'https://lccn.lbao.site/api/v1/contest-records/predicted-rating' ,
18+ {
19+ method : 'POST' ,
20+ body : JSON . stringify ( {
21+ contest_name,
22+ users,
23+ } ) ,
24+ headers : { 'content-type' : 'application/json' } ,
25+ }
26+ )
2427 if ( retry && res . status === 503 ) {
2528 await sleep ( 2000 )
2629 return lbaoPredictorApi ( contest_name , users , retry - 1 )
You can’t perform that action at this time.
0 commit comments