Retaking a class in the same semester

Hi!
So I’m kind of in a weird position. I got accepted to UCSD for the Fall semester and I’ve already submitted my SIR but I got a D in one of my classes. I know that a D can mean cancellation but I was told that if I retake the class I should be okay.
However, my school didn’t offer the course during the summer so I used assist to find the equivalent of this course at a different CCC that way I would be able to retake it.
I ended up finding the equivalent course at De Anza/Foothill College online so I retook the class with a B.
The kicker is that this course is also listed on my transcripts as a Spring class so I’m not sure if this could “replace” my D since that was also a Spring semester class (De Anza is on a quarter system so their Spring ends later then most and the class I retook was a short-term class that took place in the last six weeks which is why it worked out that way).
If you’re wondering, my GPA is still okay and the class is not a major prereq or a GE .
Has anyone ever been in this situation before? Do you think admissions will still count it as a retake?

Yes it’s a retake since you took it after the first.