mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
refs #709, as result of testing created special database views for ICAO codes
* view already filter incomplete data * as result, info object count values are aligned with data eventually parsed (which will allow to detect changes by comparing counts) * smaller adjustments to allow airlines with designator
This commit is contained in:
@@ -137,7 +137,10 @@ namespace BlackMisc
|
||||
for (const QJsonValue &value : array)
|
||||
{
|
||||
const CAirlineIcaoCode icao(CAirlineIcaoCode::fromDatabaseJson(value.toObject()));
|
||||
if (ignoreIncomplete && !icao.hasCompleteData()) { continue; }
|
||||
if (ignoreIncomplete && !icao.hasCompleteData())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
codes.push_back(icao);
|
||||
}
|
||||
return codes;
|
||||
@@ -158,7 +161,7 @@ namespace BlackMisc
|
||||
else
|
||||
{
|
||||
const QString d(icao.getDesignator());
|
||||
if (c.contains(d)) { continue; }
|
||||
if (c.contains(d) || d.isEmpty()) { continue; }
|
||||
c.append(d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user