I separated the logic of getting a certain model by index into functions in a separate file called utils.py since i will use the same code in editing existing models.
Also there is a bug in indexing (if 0 <= index < len(data["education"]) -1 ) this will exclude the last one which is incorrect.
so i removed the -1
I separated the logic of getting a certain model by index into functions in a separate file called utils.py since i will use the same code in editing existing models. Also there is a bug in indexing (if 0 <= index < len(data["education"]) -1 ) this will exclude the last one which is incorrect. so i removed the -1