Check if the match history contains an event with that event ID.. If not, throw an error.
Using the new EloEventConverter, parse NEWEVENT. The passed type should be the same as the old event. Remove the old event, and add the new one to the match history.
All old optional values should remain the same. (i.e. if any optional values are None after parsing NEWEVENT, get them from the old event.)
We need to make sure that the EloEventConverter isn't filling in default values for things like K factor.
elo edit EVENTID NEWEVENT
EVENTID
can just be given a type hint ofint
.Check if the match history contains an event with that event ID.. If not, throw an error.
Using the new
EloEventConverter
, parseNEWEVENT
. The passed type should be the same as the old event. Remove the old event, and add the new one to the match history. All old optional values should remain the same. (i.e. if any optional values areNone
after parsingNEWEVENT
, get them from the old event.)We need to make sure that the EloEventConverter isn't filling in default values for things like K factor.
After everything's done, recalculate elo.