ongeki: update ongeki_static_tech_music_uk

This commit is contained in:
Dniel97
2025-03-26 20:50:30 +01:00
parent a2f71dc553
commit fbcc53aeae
3 changed files with 34 additions and 1 deletions

View File

@@ -137,6 +137,9 @@ class OngekiReader(BaseReader):
troot.find("EventType").text
].value
if troot.find("EventType").text == "MissionEvent":
name = (troot.find("Event").find("MissionName").find("str").text)
await self.data.static.put_event(self.version, id, event_type, name)
self.logger.info(f"Added event {id}")

View File

@@ -135,7 +135,7 @@ tech_music = Table(
Column("eventId", Integer, nullable=False),
Column("musicId", Integer, nullable=False),
Column("level", Integer, nullable=False),
UniqueConstraint("version", "musicId", name="ongeki_static_tech_music_uk"),
UniqueConstraint("version", "eventId", "musicId", "level", name="ongeki_static_tech_music_uk"),
mysql_charset="utf8mb4",
)