Primary residence

I live in NYC but have a weekend home upstate. Last year, because of COVID, I lived upstate for 6 months. Where is my primary residence for the year for NYC taxes or does it remain the same? Thanks.