From fcdc5cdbded688bea82c5bc4bfad15bbd9fb6c27 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Sun, 26 Nov 2023 02:06:27 +1100 Subject: [PATCH] Fixed typo in rematcher code (#192) * Include ROM's without a signature match in rematcher efforts * Rematcher will now execute on all titles if manually started * Fixed typo in rematcher code --- gaseous-server/Classes/ImportGames.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gaseous-server/Classes/ImportGames.cs b/gaseous-server/Classes/ImportGames.cs index 4fbf27e2..b935b045 100644 --- a/gaseous-server/Classes/ImportGames.cs +++ b/gaseous-server/Classes/ImportGames.cs @@ -755,11 +755,11 @@ public static void Rematcher(bool ForceExecute = false) string sql = ""; if (ForceExecute == false) { - sql = "SELECT * FROM Games_Roms WHERE (PlatformId = 0 OR GameId = 0 OR MetaddataSource = 0) AND (LastMatchAttemptDate IS NULL OR LastMatchAttemptDate < @lastmatchattemptdate) LIMIT 100;"; + sql = "SELECT * FROM Games_Roms WHERE (PlatformId = 0 OR GameId = 0 OR MetadataSource = 0) AND (LastMatchAttemptDate IS NULL OR LastMatchAttemptDate < @lastmatchattemptdate) LIMIT 100;"; } else { - sql = "SELECT * FROM Games_Roms WHERE (PlatformId = 0 OR GameId = 0 OR MetaddataSource = 0);"; + sql = "SELECT * FROM Games_Roms WHERE (PlatformId = 0 OR GameId = 0 OR MetadataSource = 0);"; } Dictionary dbDict = new Dictionary(); dbDict.Add("lastmatchattemptdate", DateTime.UtcNow.AddDays(-7));