Modern UI: the statistics screen reads the almanac
ModernSession::read_statistics_screen answers the statistics screen's filters with real data: eternal table, national tournaments (winners, scorers, history), series and records, winners by season and the own club per five minutes. Views the engine does not record yet (title chances, transfers, weekly curves, season finances) answer available false, reason not_recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e82ce1649f
commit
015fa65f56
6 files changed
+378
-1
No files matched your search
@@ -747,6 +747,14 @@ int main(int argc, char** argv) {
|
||||
const auto request = cli::Json::Object{{"kind", kind}, {"requestId", std::string("request:sim-") + kind}};
|
||||
std::printf("ui_read %s\n -> %s\n", kind, cli::dump_json(session.ui_read(request, revision)).c_str());
|
||||
}
|
||||
for (const auto& filter : {cli::Json::Object{{"section", 3}}, cli::Json::Object{{"section", 4}, {"country", 0}},
|
||||
cli::Json::Object{{"section", 4}, {"country", 2}}, cli::Json::Object{{"section", 6}},
|
||||
cli::Json::Object{{"section", 7}}, cli::Json::Object{{"section", 7}, {"category", 1}},
|
||||
cli::Json::Object{{"section", 8}}, cli::Json::Object{{"section", 1}}}) {
|
||||
std::string answer = cli::dump_json(session.read_statistics_screen(filter));
|
||||
if (answer.size() > 1500) answer = answer.substr(0, 1500) + " ...";
|
||||
std::printf("statistics screen %s\n -> %s\n", cli::dump_json(filter).c_str(), answer.c_str());
|
||||
}
|
||||
std::printf("ui_read wrong manager\n -> %s\n",
|
||||
cli::dump_json(session.ui_read(cli::Json::Object{{"kind", "desktop"}, {"managerId", "manager:99"}}, revision)).c_str());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user