API: enable omnimix for only MUSECA and IIDX
This commit is contained in:
parent
d32c8fafa6
commit
416904100b
@ -165,10 +165,13 @@ class CatalogObject(BaseObject):
|
||||
|
||||
@property
|
||||
def music_version(self) -> int:
|
||||
if self.game in [GameConstants.IIDX, GameConstants.MUSECA]:
|
||||
if self.omnimix:
|
||||
return self.version + DBConstants.OMNIMIX_VERSION_BUMP
|
||||
else:
|
||||
return self.version
|
||||
else:
|
||||
return self.version
|
||||
|
||||
def fetch_v1(self, idtype: str, ids: List[str], params: Dict[str, Any]) -> Dict[str, List[Dict[str, Any]]]:
|
||||
# Verify IDs
|
||||
|
@ -222,10 +222,13 @@ class RecordsObject(BaseObject):
|
||||
|
||||
@property
|
||||
def music_version(self) -> int:
|
||||
if self.game in [GameConstants.IIDX, GameConstants.MUSECA]:
|
||||
if self.omnimix:
|
||||
return self.version + DBConstants.OMNIMIX_VERSION_BUMP
|
||||
else:
|
||||
return self.version
|
||||
else:
|
||||
return self.version
|
||||
|
||||
def fetch_v1(self, idtype: str, ids: List[str], params: Dict[str, Any]) -> List[Dict[str, Any]]:
|
||||
since = params.get('since')
|
||||
|
@ -25,10 +25,13 @@ class StatisticsObject(BaseObject):
|
||||
|
||||
@property
|
||||
def music_version(self) -> int:
|
||||
if self.game in [GameConstants.IIDX, GameConstants.MUSECA]:
|
||||
if self.omnimix:
|
||||
return self.version + DBConstants.OMNIMIX_VERSION_BUMP
|
||||
else:
|
||||
return self.version
|
||||
else:
|
||||
return self.version
|
||||
|
||||
def __is_play(self, attempt: Attempt) -> bool:
|
||||
if self.game in [
|
||||
|
Loading…
x
Reference in New Issue
Block a user