Wops.. values instead of items >.<
This commit is contained in:
parent
088674041a
commit
65436df5d0
|
@ -48,7 +48,7 @@ class Replay:
|
||||||
structure = {
|
structure = {
|
||||||
"mode": Serializable(osuModes.STANDARD, TYPE_BYTE),
|
"mode": Serializable(osuModes.STANDARD, TYPE_BYTE),
|
||||||
"osu_version": Serializable(20181216, TYPE_INT),
|
"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),
|
"player_name": Serializable(b"osu!", TYPE_STRING),
|
||||||
"score_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING),
|
"score_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING),
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ class Replay:
|
||||||
|
|
||||||
serializer = Serializer()
|
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:
|
with open(filename, "wb") as f:
|
||||||
f.write( serializer.flush() )
|
f.write( serializer.flush() )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user