added ZZNOK

This commit is contained in:
Daniel Schick 2023-04-12 08:56:00 +02:00
parent 17ea1f080c
commit 588385fc14
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace bsmd.Tool
// preload countries
Dictionary<string, int> countryDict = new Dictionary<string, int>();
SQLiteCommand countryCmd = new SQLiteCommand(connection);
countryCmd.CommandText = "SELECT id, code FROM countries";
SQLiteDataReader reader = countryCmd.ExecuteReader();
@ -95,7 +95,7 @@ namespace bsmd.Tool
if (code.Length < 3) continue;
currentLocodes.Add(country + code);
ccode.Value = country;
lcode.Value = code;
@ -173,6 +173,7 @@ namespace bsmd.Tool
{
string locode = reader2.GetString(0) + reader2.GetString(2);
if (locode.Equals("ZZUKN")) continue;
if (locode.Equals("ZZNOK")) continue;
if (!currentLocodes.Contains(locode))
deleteIds.Add(reader2.GetInt32(1));
}

Binary file not shown.