Show the authoritative stadium name in the own club profile (by Codex)
This commit is contained in:
1 parent
a317e73958
commit
e559e84a69
2 files changed
+8
-1
No files matched your search
@@ -404,3 +404,10 @@ Hauptmenü-Laden nach vollem Prozessneustart. Beide Übergänge öffnen danach d
|
||||
native Eintrittswidget. Beim Restore werden gespeicherte Daten exakt verglichen;
|
||||
nur tatsächlich neu ausgestellte Camp-Angebotskennungen/Scope/Revisionsbindungen
|
||||
werden separat gegen den neuen aktuellen Kontext geprüft. Anstoß bleibt gesperrt.
|
||||
|
||||
Das eigene Vereinsprofil bevorzugt beim Stadionnamen die tatsächlich gelieferte
|
||||
Angabe des Session-Stadionreads (#23). Das gilt ausschließlich bei gleicher
|
||||
stabiler Team-ID. Fehlende Stadionzuordnungen fremder Vereine werden weiterhin
|
||||
als unbekannt dargestellt; es gibt keine Namens-/Reihenfolgeraten aus dem Katalog.
|
||||
Ein nativer Vorher-/Nachher-Gegenfall mit derselben OBS-Datei und fünf gezielte
|
||||
Bericht-/Layouttests prüfen die Anzeige.
|
||||
@@ -170,7 +170,7 @@ std::string App::engine_reports_detail() {
|
||||
if(!stadium)for(const auto &candidate:world_->rows("stadiums"))if(candidate.value("owner",Json())==report_detail_club_){stadium=&candidate;break;}
|
||||
if(stadium)stadium_name=world_->name(*stadium);
|
||||
const auto &live_stadium=engine_data_.at("stadium");
|
||||
if(live_stadium.value("messageType","")=="snapshot"&&live_stadium.at("data").at("teamId")==report_detail_club_) {int64_t sum=0;for(const auto &block:live_stadium.at("data").at("blocks"))sum+=block.at("places").get<int64_t>();places=number(sum);}
|
||||
if(live_stadium.value("messageType","")=="snapshot"&&live_stadium.at("data").at("teamId")==report_detail_club_) {if(live_stadium.at("data").value("name",Json()).is_string())stadium_name=live_stadium.at("data").at("name").get<std::string>();int64_t sum=0;for(const auto &block:live_stadium.at("data").at("blocks"))sum+=block.at("places").get<int64_t>();places=number(sum);}
|
||||
body="<div class=\"report-detail-badge\">"+crest(world_->find("clubs",report_detail_club_),192)+"</div><p class=\"report-detail-note\">Vereinsprofil</p>"+report_detail_fields({{"Stadion",stadium_name},{"Plätze",places},{"Stärke",strength},{"Manager",manager}},72);
|
||||
bool has_squad=true;if(menu_=="other")for(const auto &m:engine_other_value_.at("matches")){if(m.at("home")==report_detail_club_)has_squad=m.at("homeHasSquad");if(m.at("away")==report_detail_club_)has_squad=m.at("awayHasSquad");}
|
||||
actions=btn("report-club-roster","Spieler","report-detail-action",std::string("id=\"report-detail-roster\" ")+(has_squad?"":"disabled"))+close;
|
||||
|
||||
Reference in new issue
Block a user