Modern live ticker: crowd and weather before the kickoff
The recording's ticker matches and the paused live kickoff's matches carry attendance and weather (temperature, the original's weather picture; none indoors), as the interface asked in issue 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
98e6982d07
commit
d3ea650c07
4 files changed
+17
-1
No files matched your search
@@ -546,6 +546,9 @@ int main(int argc, char** argv) {
|
||||
check(truth(at(fixture, "ok")) && s(at(fixture, "source")) == "engine-recording" && frames && frames->size() >= 4 &&
|
||||
matches && !matches->empty() && at(fixture, "owners").array() && !at(fixture, "owners").array()->empty(),
|
||||
"live fixture of the last kickoff");
|
||||
if (matches && !matches->empty())
|
||||
check(at((*matches)[0], "attendance").integer() && at(at((*matches)[0], "weather"), "rain").integer(),
|
||||
"crowd and weather of the ticker match before the kickoff");
|
||||
if (frames && frames->size() >= 4) {
|
||||
const J& last = frames->back();
|
||||
const J one = session.read_live(O{{"kind", "frame"}, {"sequence", int64_t(frames->size() - 1)}});
|
||||
@@ -601,6 +604,8 @@ int main(int argc, char** argv) {
|
||||
*at(state, "minute").integer() >= 30, "thirty minutes on");
|
||||
std::printf("(live state: %s)\n", cli::dump_json(state).substr(0, 400).c_str());
|
||||
check(at(state, "standings").array() != nullptr, "the paused kickoff names its live tables");
|
||||
if (const auto* live = at(state, "matches").array(); live && !live->empty())
|
||||
check(at(at((*live)[0], "weather"), "temperature").integer() != nullptr, "the paused match's weather");
|
||||
std::printf("(paused live tables: %zu)\n", at(state, "standings").array() ? at(state, "standings").array()->size() : 0);
|
||||
if (const auto* live = at(state, "matches").array(); live && !live->empty()) {
|
||||
int goals = 0;
|
||||
|
||||
Reference in new issue
Block a user