Cm and infection?

Katie
So I'm going back to the doc after my mc cause I think I have an infection in my uterus. My cm is thick and yellow on tp. So maybe that's the problem?