1
0
mirror of synced 2024-11-27 23:50:47 +01:00

Add support for Jubeat omnimix on api

This commit is contained in:
ishmael573 2022-10-25 13:59:13 +00:00 committed by Jennifer Taylor
parent 3c1054b54c
commit d14317c18c
3 changed files with 15 additions and 3 deletions

View File

@ -215,7 +215,11 @@ class CatalogObject(BaseObject):
@property @property
def music_version(self) -> int: def music_version(self) -> int:
if self.game in {GameConstants.IIDX, GameConstants.MUSECA}: if self.game in {
GameConstants.IIDX,
GameConstants.MUSECA,
GameConstants.JUBEAT,
}:
if self.omnimix: if self.omnimix:
return self.version + DBConstants.OMNIMIX_VERSION_BUMP return self.version + DBConstants.OMNIMIX_VERSION_BUMP
else: else:

View File

@ -222,7 +222,11 @@ class RecordsObject(BaseObject):
@property @property
def music_version(self) -> int: def music_version(self) -> int:
if self.game in {GameConstants.IIDX, GameConstants.MUSECA}: if self.game in {
GameConstants.IIDX,
GameConstants.MUSECA,
GameConstants.JUBEAT,
}:
if self.omnimix: if self.omnimix:
return self.version + DBConstants.OMNIMIX_VERSION_BUMP return self.version + DBConstants.OMNIMIX_VERSION_BUMP
else: else:

View File

@ -26,7 +26,11 @@ class StatisticsObject(BaseObject):
@property @property
def music_version(self) -> int: def music_version(self) -> int:
if self.game in {GameConstants.IIDX, GameConstants.MUSECA}: if self.game in {
GameConstants.IIDX,
GameConstants.MUSECA,
GameConstants.JUBEAT,
}:
if self.omnimix: if self.omnimix:
return self.version + DBConstants.OMNIMIX_VERSION_BUMP return self.version + DBConstants.OMNIMIX_VERSION_BUMP
else: else: