Despite having finished the quest and getting the trait, after getting Anna to 5 hearts, the gym quest stays incomplete in the quest log no matter how many times you try to do the special training afterwards.