set_mods func

This commit is contained in:
2019-03-13 06:04:29 +01:00
parent 93e26250f8
commit a94baeac62
2 changed files with 3 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ from .helpers import osuMods
from .helpers import osuRanks
from .helpers import typeSerializer
from os.path import isfile
from hashlib import md5 as _md5
def md5(str):
@@ -80,6 +81,7 @@ class Replay:
def set_mods(self, mods):
if mods < 0 or mods > (1 << 30) - 1:
raise Exception("Mods are out of range")
self.mods = mods
# --------------------------------------------------------------------------
# Update variables ---------------------------------------------------------