forked from Dniel97/artemis
ongeki: bump schema ver, fix error if events lookup fails
This commit is contained in:
parent
46f61325cb
commit
662fd05d24
@ -9,4 +9,4 @@ database = OngekiData
|
|||||||
reader = OngekiReader
|
reader = OngekiReader
|
||||||
frontend = OngekiFrontend
|
frontend = OngekiFrontend
|
||||||
game_codes = [OngekiConstants.GAME_CODE]
|
game_codes = [OngekiConstants.GAME_CODE]
|
||||||
current_schema_version = 5
|
current_schema_version = 6
|
||||||
|
@ -171,7 +171,6 @@ class OngekiBase:
|
|||||||
"gameRankingList": ranking_list,
|
"gameRankingList": ranking_list,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def handle_get_game_point_api_request(self, data: Dict) -> Dict:
|
def handle_get_game_point_api_request(self, data: Dict) -> Dict:
|
||||||
get_game_point = self.data.static.get_static_game_point()
|
get_game_point = self.data.static.get_static_game_point()
|
||||||
game_point = []
|
game_point = []
|
||||||
@ -314,6 +313,13 @@ class OngekiBase:
|
|||||||
def handle_get_game_event_api_request(self, data: Dict) -> Dict:
|
def handle_get_game_event_api_request(self, data: Dict) -> Dict:
|
||||||
evts = self.data.static.get_enabled_events(self.version)
|
evts = self.data.static.get_enabled_events(self.version)
|
||||||
|
|
||||||
|
if evts is None:
|
||||||
|
return {
|
||||||
|
"type": data["type"],
|
||||||
|
"length": 0,
|
||||||
|
"gameEventList": [],
|
||||||
|
}
|
||||||
|
|
||||||
evt_list = []
|
evt_list = []
|
||||||
for event in evts:
|
for event in evts:
|
||||||
evt_list.append(
|
evt_list.append(
|
||||||
|
Loading…
Reference in New Issue
Block a user