Wops.. values instead of items >.<

This commit is contained in:
Emily 2019-09-01 13:47:38 +00:00
parent 088674041a
commit 65436df5d0

View File

@ -48,7 +48,7 @@ class Replay:
structure = {
"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),
@ -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() )