Open jauggy opened 1 week ago
Looks alright to me. I couldn't test that locally (yet) because there's another error if there is no match at all in the DB.
So before this line:
AND rating_type_id = $3
would fetch zero rows when the $3 is nil. And we would get the error as shown in #334
Now, it should not error if you actually have matches. If you don't have any matches at all it would error but that would only occur if you didn't run the mix teiserver.fakedata
locally.
Work Done
Fixes https://github.com/beyond-all-reason/teiserver/issues/334 Also allows filtering by Small Team and Large Team when exporting data
Test Steps