Hey hey listen. I know it doesn't feel like it, but it's okay. Even though it may not feel like it and you may not see it, you have made progress within the "about a year". You definitely have. I've relapsed at the almost-1yr mark so many times, but you can't let that one moment define the whole past year. You came across a situation where you didn't know how to deal, and you dealt in a way you knew how. Next time this kind of thing comes up, you'll be more aware.
Have you heard the song "Accidents Can Happen" by Sixx AM?
Please take care and don't beat yourself up too much.
- AJ