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
{{ message }}
This repository was archived by the owner on Sep 15, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 15, 2023. It is now read-only.
Possible bug: __repr__ method of Run class overwrites .game and .category variables #13
.game and .category, before the object is printed, refer to ID strings. This behavior is inconsistent, especially when working between the interpreter and scripting.
Yeah, I think I went with a method that solved a bug I had at the time, but turning data into a class instance definitely shouldn't be happening in repr.
Activity
blha303 commentedon Nov 15, 2018
You're right, the repr function shouldn't be modifying the data. I'll see what I can do, thanks
thecnoNSMB commentedon Nov 15, 2018
Just skimming over the code, it looks like the Leaderboard class has the same problem.
blha303 commentedon Nov 15, 2018
Yeah, I think I went with a method that solved a bug I had at the time, but turning data into a class instance definitely shouldn't be happening in repr.