Skip to content

Commit

Permalink
Fixed StandardHM characteristic
Browse files Browse the repository at this point in the history
  • Loading branch information
LuCkEr- committed Aug 15, 2021
1 parent c506fc0 commit 6955b8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="PyScoreSaber",
version="0.0.7",
version="0.0.8",
author="LuCkEr-",
author_email="lucker@lucker.xyz",
description="Score Saber API client",
Expand Down
5 changes: 5 additions & 0 deletions src/pyscoresaber/models/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def datetime_field(json_field_name: Optional[str] = None) -> Field:

def characteristic_decoder(value: any) -> Characteristic:
res = value[1:].split("_")[1].replace("Solo", "")

# Some weird "StandardHM" characteristic that doesnt exist anymore
if "HM" in res:
res.replace("HM", "")

return Characteristic(res)


Expand Down

0 comments on commit 6955b8f

Please sign in to comment.