['I needed a D on a test to not fail the class, which was pretty bad anyway.']
Oh no. What grade did you get?
I really needed a D on this test to pass the class even if that is a bad score. I got exactly the score that I needed so I was satisfied.