Don't be so hard on yourself. Part of a good training regimen is knowing when you need to rest. Focus on the long-term goal. If you kept going when you didn't feel well, you might end up very sick or injured, which would sideline you for much longer than a day.

Sounds like you had a good week, regardless.