Using country name instead of mwm in track analyzer

This commit is contained in:
VladiMihaylenko 2019-03-01 18:58:35 +03:00
parent 4e9b3238e8
commit f6893222b7

View file

@ -375,6 +375,7 @@ void CmdTagsTable(string const & filepath, string const & trackExtension, String
if (mwmFilter(mwmName))
return;
auto const countryName = storage.GetTopmostParentFor(mwmName);
shared_ptr<VehicleModelInterface> vehicleModel =
CarModelFactory({}).GetVehicleModelForCountry(mwmName);
string const mwmFile = GetCurrentVersionMwmFile(storage, mwmName);
@ -406,7 +407,7 @@ void CmdTagsTable(string const & filepath, string const & trackExtension, String
subTrackBegin = subTrackEnd;
}
auto const summary = aggregator.GetSummary(user, mwmName);
auto const summary = aggregator.GetSummary(user, countryName);
if (!summary.empty())
cout << summary;
}