forked from Dniel97/artemis
cxb: fixing index and rss2 /data handler
This commit is contained in:
parent
fe25359e8e
commit
7fb98118b2
@ -175,8 +175,8 @@ class CxbServlet(BaseServlet):
|
|||||||
internal_ver = CxbConstants.VER_CROSSBEATS_REV_SUNRISE_S2
|
internal_ver = CxbConstants.VER_CROSSBEATS_REV_SUNRISE_S2
|
||||||
|
|
||||||
if not hasattr(self.versions[internal_ver], func_to_find):
|
if not hasattr(self.versions[internal_ver], func_to_find):
|
||||||
self.logger.warn(f"{version_string} has no handler for filetype {filetype}")
|
self.logger.warn(f"{version_string} has no handler for filetype {filetype} / {func_to_find}")
|
||||||
return ""
|
return({"data":""})
|
||||||
|
|
||||||
self.logger.info(f"{version_string} request for filetype {filetype}")
|
self.logger.info(f"{version_string} request for filetype {filetype}")
|
||||||
self.logger.debug(req_json)
|
self.logger.debug(req_json)
|
||||||
|
@ -120,9 +120,14 @@ class CxbRevSunriseS2(CxbBase):
|
|||||||
return {"data": ret_str}
|
return {"data": ret_str}
|
||||||
|
|
||||||
def handle_data_extra_stage_list_request(self, data: Dict) -> Dict:
|
def handle_data_extra_stage_list_request(self, data: Dict) -> Dict:
|
||||||
return {"data": ""}
|
ret_str=""
|
||||||
|
with open(r"titles/cxb/data/rss2/ExtraStageList.csv") as extra:
|
||||||
|
lines = extra.readlines()
|
||||||
|
for line in lines:
|
||||||
|
ret_str += f"{line[:-1]}\r\n"
|
||||||
|
return({"data":ret_str})
|
||||||
|
|
||||||
def handle_data_ex0001_request(self, data: Dict) -> Dict:
|
def handle_data_exxxxx_request(self, data: Dict) -> Dict:
|
||||||
return {"data": ""}
|
return {"data": ""}
|
||||||
|
|
||||||
def handle_data_one_more_extra_list_request(self, data: Dict) -> Dict:
|
def handle_data_one_more_extra_list_request(self, data: Dict) -> Dict:
|
||||||
@ -131,7 +136,7 @@ class CxbRevSunriseS2(CxbBase):
|
|||||||
def handle_data_bonus_list10100_request(self, data: Dict) -> Dict:
|
def handle_data_bonus_list10100_request(self, data: Dict) -> Dict:
|
||||||
return {"data": ""}
|
return {"data": ""}
|
||||||
|
|
||||||
def handle_data_oe0001_request(self, data: Dict) -> Dict:
|
def handle_data_oexxxx_request(self, data: Dict) -> Dict:
|
||||||
return {"data": ""}
|
return {"data": ""}
|
||||||
|
|
||||||
def handle_data_free_coupon_request(self, data: Dict) -> Dict:
|
def handle_data_free_coupon_request(self, data: Dict) -> Dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user