diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2019-03-01 18:58:35 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2019-03-25 17:48:13 +0300 |
commit | f6893222b7a293cf666e97598000f11d41003260 (patch) | |
tree | c48c1dd9e04693641d329fdc82e29c2a6cd6fca3 /track_analyzing | |
parent | 4e9b3238e8aff0fdbc43f3e66b20992ce79a1f64 (diff) |
Using country name instead of mwm in track analyzer
Diffstat (limited to 'track_analyzing')
-rw-r--r-- | track_analyzing/track_analyzer/cmd_table.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/track_analyzing/track_analyzer/cmd_table.cpp b/track_analyzing/track_analyzer/cmd_table.cpp index c41a687f38..177a2ea2d5 100644 --- a/track_analyzing/track_analyzer/cmd_table.cpp +++ b/track_analyzing/track_analyzer/cmd_table.cpp @@ -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; } |