Mistake: 'had got' is redundant. 'Got' or 'had' is sufficient.
Corrected sentence: We got a lot of homework yesterday. OR We had a lot of homework yesterday.