Bind national friendly planning to engine offers and saved schedules (by Codex)
This commit is contained in:
1 parent
15d2ac0a4d
commit
d615f03e15
14 files changed
+259
-30
No files matched your search
@@ -51,6 +51,7 @@ std::string App::engine_calendar_info(const Json &view) const {
|
||||
return out;
|
||||
}
|
||||
std::string App::engine_calendar_footer(const Json &view) {
|
||||
if (view.at("national")==true) return "<nav class=\"report-footer\">" + btn("engine-calendar-filter", "Nationalmannschaft · Saison " + esc(engine_data_.at("desktop").at("meta").at("season").at("label").get<std::string>()), "report-reset engine-calendar-label", "id=\"calendar-national\" disabled style=\"" + rect(0,0,2612,94) + "\"") + "</nav>";
|
||||
const auto &team = engine_data_.at("desktop").at("data").at("team");
|
||||
const auto *nation = world_->find("nations", team.value("nationId", ""));
|
||||
const auto *league = view.at("league").is_string() ? world_->find("competitions", view.at("league")) : nullptr;
|
||||
|
||||
Reference in new issue
Block a user