mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 13:35:34 +08:00
Based on unit test failure (clang):
* now ignore incomplete entities for airline/aircraft ICAOs from DB * utility functions to find invalid designators * adjusted unit test, avoid taking a random element * and fixed 4 wrong ICAO entries in DB
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4bb29de652
commit
5c32a912f3
@@ -239,7 +239,7 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// normally read from special view which already filter incomplete
|
||||
const CAircraftIcaoCodeList codes = CAircraftIcaoCodeList::fromDatabaseJson(res, false);
|
||||
const CAircraftIcaoCodeList codes = CAircraftIcaoCodeList::fromDatabaseJson(res, true);
|
||||
const int n = codes.size();
|
||||
qint64 latestTimestamp = codes.latestTimestampMsecsSinceEpoch();
|
||||
if (n > 0 && latestTimestamp < 0)
|
||||
@@ -266,7 +266,7 @@ namespace BlackCore
|
||||
emit dataRead(CEntityFlags::AirlineIcaoEntity, CEntityFlags::ReadFailed, 0);
|
||||
return;
|
||||
}
|
||||
const CAirlineIcaoCodeList codes = CAirlineIcaoCodeList::fromDatabaseJson(res, false);
|
||||
const CAirlineIcaoCodeList codes = CAirlineIcaoCodeList::fromDatabaseJson(res, true);
|
||||
const int n = codes.size();
|
||||
qint64 latestTimestamp = codes.latestTimestampMsecsSinceEpoch();
|
||||
if (n > 0 && latestTimestamp < 0)
|
||||
|
||||
Reference in New Issue
Block a user