Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOP, help needed to understand the total status #87

Open
otahirs opened this issue Sep 1, 2024 · 0 comments
Open

MOP, help needed to understand the total status #87

otahirs opened this issue Sep 1, 2024 · 0 comments

Comments

@otahirs
Copy link

otahirs commented Sep 1, 2024

Hi, I am implementing support for total results after X stages for OResults and I have encountered a minor problem.
the XSD describing the MeOS online protocol looks like this:

<xsd:complexType name="Input">
    <xsd:annotation>
      <xsd:documentation>
        Input status.
      </xsd:documentation>
    </xsd:annotation>    
    
    <xsd:attribute name="it" type="xsd:integer" use="required">
      <xsd:annotation>
        <xsd:documentation>
          Input time, i.e. accumulated time of prevous races/legs/stages etc., in tenths of a second.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    
    <xsd:attribute name="tstat" type="xsd:integer" use="required">
      <xsd:annotation>
        <xsd:documentation>
          Total status of the competitor after this race/leg/stage etc.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>    
  </xsd:complexType>

If i understand it correctly, the tstat should be total status of the competitor after this race/leg/stage etc.
However the output from recent event contained records like this

<cmp id="14923505" card="533135">
<base org="142" cls="185280" stat="3" st="381000" rt="50430" nat="CZE">Snow, Radek</base>
<input it="26210" tstat="1"/>
</cmp>
<cmp id="263877022" card="42057">
<base org="48" cls="185283" stat="0" st="403800" rt="0" nat="CZE">Vomáčka, Oldřich</base>
<input it="40120" tstat="1"/>
</cmp>

It does not make sense for the competitor to have MP status stat 3 and total status OK tstat 1.
or to have status Unknows stat 0 (still running), but total status tstat 1 OK


more over, if results are send only for selected stage, the total status always shows <input it="0" tstat="1"/> for every competitor, even when the competitor has not finished yet

<cmp id="256" card="8014049">
<base org="2796" cls="4" stat="0" st="388800" rt="0" bib="24">Novák Matěj</base>
<input it="0" tstat="1"/>
</cmp>

It would be grateful if you could clarify the implementation of total status in MOP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant