If it is a statement of what happened in the past, the past tense is completely correct; If you spend 2 hours doing your homework every day, it is a common occurrence. It is better to use the present tense, depending on the context. I think there is nothing wrong with using the past tense alone in such a sentence.
I hope the answer is useful to you.