So I finished the final stage of the sqlite challenge today. However, upon completing the challenge, my code looked like Frankenstein’s monster. I have since spent a couple of hours refactoring it, and it looks much better now. However, under “code examples”, it still shows the old, horrible version. Does it not get updated once you pass a stage? I could imagine that I am not the only one who tidies up his code only after passing a challenge, so perhaps we are missing out on much cleaner code examples from many participants?
Ah, I think this is specific to the last stage. We usually publish code examples when you do the “mark stage as complete” flow. For all other stages, that means that you’ve moved on and are now working on the next stages. For the last stage, even after marking as completed we let you push code and run tests again.
@Convl can you confirm that you have the last stage marked as completed? Will think about this, we should be able to publish new versions on push.
Hey @rohitpaulk , yes, I did indeed mark the final stage as complete as soon as I had a version that passed the test, and only started to refactor my code later, so that must be why the code example is not getting updated. It’s not an urgent thing, but might be something you will want to look into at some point, as I am likely not the only one who polishes their code only after completing the challenge.
Makes sense, agreed!