Closed psemdel closed 1 year ago
I understand what happens, they changed their system completely with the time. For instance, I changed nothing by rider, but the test fails also. I stay on the topic.
The different cases are really difficult to cover, but I found after much time a solution that seems to work for many cases (see tests). Don't hesitation to improve the code. I suppose, it is not my last commit.
Hi @psemdel , I opened #25 which I think fixes most of the problems with a few changes. I'll wait a few days before merging in case you have any comments.
My PR does not fix the problem with the other classifications for 2023 stage races. If your PR has the solution (I haven't had time to test yet), let's rebase after merging #25. I want to handle one improvement at a time.
Sure, too many changes at once is dangerous. I had to change several things at the same time, because otherwise it worked for then new race, but not anymore for the old, and then the contrary.. So I tackled everything at once.
Compared to your PR:
My suggestion would be that you first pick-up my supplementary tests. Then you can make up your mind from there.
I also added a handling of startlist and results (I needed it for my purposes). It is an extra feature. I really needed some effort to avoid breaking your code with it. But definitively you can add it at the end. It is the file "combi" and "combi_test". Nothing depends on them.
Thanks @psemdel ! I just merged #25 .
I agree with your changes, and like you said let's add them one at a time. Let's do:
You can convert this PR to be change 1, or you can make a new PR if that's easier.
I think, I will make a new PR tomorrow.
Please check it.