Scouting: Ignore prescouted teams in match list

Some prescoutes teams that had the same match number and team number
are showing up as scouted already even though the match hasn't happened yet.
This patch ignores prescouted teams when checking if a match has been fully scouted.

Signed-off-by: Filip Kujawa <filip.j.kujawa@gmail.com>
Change-Id: I586f9d6d31251af18a958e05152a04e2cad5d7b2
diff --git a/scouting/db/db.go b/scouting/db/db.go
index b4d1bca..18d54a4 100644
--- a/scouting/db/db.go
+++ b/scouting/db/db.go
@@ -249,11 +249,11 @@
 	return stats2023, result.Error
 }
 
-func (database *Database) ReturnStats2023ForTeam(teamNumber string, matchNumber int32, setNumber int32, compLevel string) ([]Stats2023, error) {
+func (database *Database) ReturnStats2023ForTeam(teamNumber string, matchNumber int32, setNumber int32, compLevel string, preScouting bool) ([]Stats2023, error) {
 	var stats2023 []Stats2023
 	result := database.
-		Where("team_number = ? AND match_number = ? AND set_number = ? AND comp_level = ?",
-			teamNumber, matchNumber, setNumber, compLevel).
+		Where("team_number = ? AND match_number = ? AND set_number = ? AND comp_level = ? AND pre_scouting = ?",
+			teamNumber, matchNumber, setNumber, compLevel, preScouting).
 		Find(&stats2023)
 	return stats2023, result.Error
 }