You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.version=data.get('version' , "") # difficulty name
59
58
self.creator=data.get('creator' , "")
60
59
self.file_md5=data.get('file_md5' , "") # md5 hash of the beatmap
61
-
self.approved_date=datetime.datetime.strptime(data.get('approved_date' , "1970-01-01 00:00:00") , "%Y-%m-%d %H:%M:%S") # date ranked, UTC+8 for now
62
-
self.last_update=datetime.datetime.strptime(data.get('last_update' , "1970-01-01 00:00:00") , "%Y-%m-%d %H:%M:%S") # last update date, timezone same as above. May be after approved_date if map was unranked and reranked.
60
+
self.last_update=datetime.datetime.strptime(data.get('last_update' , "1970-01-01 00:00:00"), "%Y-%m-%d %H:%M:%S") # last update date, timezone same as above. May be after approved_date if map was unranked and reranked.
61
+
62
+
# Quickfix. See https://github.com/ppy/osu-api/issues/130 for more details
63
+
ifdata.get('max_combo', 0) isNone:
64
+
self.max_combo=0
65
+
else:
66
+
self.max_combo=int(data.get('max_combo' , 0)) # The maximum combo a user can reach playing this beatmap.
67
+
68
+
# Some beatmaps have never been approved so we need to take care of this
0 commit comments