Filter out duplicate location keys when pulling from the i2's MPC file (Fixes #9)

This commit is contained in:
April P. committed 2025-05-14 13:10:10 -07:00
1 parent 568084ce0e
commit d0f99c1235
1 file changed
+6 -1
+6 -1
View File
@@ -137,11 +137,16 @@ public class Program
continue;
}
try
{
string choppedValue = i.Value.ToString().Split("_")[2];
// Avoid duplicate locations from being added to the location list
if (locations.Contains(choppedValue))
{
continue;
}
locations.Add(choppedValue);
}
catch (Exception ex)