1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

you'll never see me coming

This commit is contained in:
Steffo 2019-01-23 19:29:44 +01:00
parent 85a358c08a
commit 0fe277e826

8
db.py
View file

@ -650,10 +650,10 @@ class Osu(Base, Mini):
r3.raise_for_status() r3.raise_for_status()
j3 = r3.json()[0] j3 = r3.json()[0]
self.osu_name = j0["username"] self.osu_name = j0["username"]
std.value = float(j0["pp_raw"]) std.value = float(j0["pp_raw"] or 0)
taiko.value = float(j1["pp_raw"]) taiko.value = float(j1["pp_raw"] or 0)
catch.value = float(j2["pp_raw"]) catch.value = float(j2["pp_raw"] or 0)
mania.value = float(j3["pp_raw"]) mania.value = float(j3["pp_raw"] or 0)
self.std_pp = std.value self.std_pp = std.value
self.taiko_pp = taiko.value self.taiko_pp = taiko.value
self.catch_pp = catch.value self.catch_pp = catch.value