DC tax filing

Good Morning. I lived in DC part of last year (also lived in Alabama so I filed a return for both). This year I moved to Virginia and only lived in DC for 40 days. Will I have to file a DC return in 2023? Thanks