From 65436df5d0af7d069b31515a980d819e75633666 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 1 Sep 2019 13:47:38 +0000 Subject: [PATCH] Wops.. values instead of items >.< --- osuRepy/replay.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osuRepy/replay.py b/osuRepy/replay.py index d2af9ad..2529625 100644 --- a/osuRepy/replay.py +++ b/osuRepy/replay.py @@ -46,9 +46,9 @@ def lzma_compress(data): class Replay: structure = { - "mode": Serializable(osuModes.STANDARD, TYPE_BYTE), + "mode": Serializable(osuModes.STANDARD, TYPE_BYTE), "osu_version": Serializable(20181216, TYPE_INT), - "beatmap_hash":Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING), + "beatmap_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING), "player_name": Serializable(b"osu!", TYPE_STRING), "score_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING), @@ -62,7 +62,7 @@ class Replay: "combo": Serializable(0, TYPE_USHORT), "perfect": Serializable(True, TYPE_BOOL), - "mods": Serializable(osuMods.NOMOD, TYPE_INT), + "mods": Serializable(osuMods.NOMOD, TYPE_INT), "lifebar_graph": Serializable(b"0|1,", TYPE_STRING), "timestamp": Serializable(0, TYPE_ULLONG), @@ -236,7 +236,7 @@ class Replay: serializer = Serializer() - [ serializer.add( struc ) for struc in self.structure.items() ] # Add values to serializer + [ serializer.add( struc ) for struc in self.structure.values() ] # Add values to serializer with open(filename, "wb") as f: f.write( serializer.flush() )