Skip to content

Add resultTypeID to getresultinfos API endpoint #123

Description

@mschoettle

I am missing the resultTypeID in the /getresultinfos/{leagueId}. Match results contain the resultTypeID which could be used to match the result info of the league.

Similarly, globalresultinfo in the same endpoint does not contain any type ID. Although it is not clear to me what the purpose of globalresultinfo is. Based on the README (https://github.com/OpenLigaDB/OpenLigaDB-Samples#:~:text=Weiterhin,Tabelle) I understand it that it is always:

# mapping result name to result type ID
type_ids = {
    'Halbzeit': 1,
    'Endergebnis': 2,
    'nach Verlängerung': 3,
    'nach Elfmeterschießen': 4,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions