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

Winner wasn’t set #100

Open
Zemke opened this issue Jul 12, 2021 · 0 comments
Open

Winner wasn’t set #100

Zemke opened this issue Jul 12, 2021 · 0 comments

Comments

@Zemke
Copy link
Owner

Zemke commented Jul 12, 2021

That may be due to football-data.org, though. The winner in the current season for the competition is null.

curl -iX GET 'https://api.football-data.org/v2/competitions/2018'
{
   "area" : {
      "id" : 2077,
      "name" : "Europe"
   },
   "code" : "EC",
   "currentSeason" : {
      "currentMatchday" : 7,
      "endDate" : "2021-07-11",
      "id" : 507,
      "startDate" : "2021-06-11",
      "winner" : null
   },
   "emblemUrl" : null,
   "id" : 2018,
   "lastUpdated" : "2020-09-10T13:51:03Z",
   "name" : "European Championship",
   "plan" : "TIER_ONE",
   "seasons" : [
      {
         "currentMatchday" : 7,
         "endDate" : "2021-07-11",
         "id" : 507,
         "startDate" : "2021-06-11",
         "winner" : null
      },
      {
         "currentMatchday" : 3,
         "endDate" : "2016-07-10",
         "id" : 20,
         "startDate" : "2016-06-10",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/765.svg",
            "id" : 765,
            "name" : "Portugal",
            "shortName" : "Portugal",
            "tla" : "POR"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "2012-07-02",
         "id" : 674,
         "startDate" : "2012-06-08",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/760.svg",
            "id" : 760,
            "name" : "Spain",
            "shortName" : "Spain",
            "tla" : "ESP"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "2008-06-29",
         "id" : 673,
         "startDate" : "2008-06-07",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/760.svg",
            "id" : 760,
            "name" : "Spain",
            "shortName" : "Spain",
            "tla" : "ESP"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "2004-07-04",
         "id" : 672,
         "startDate" : "2004-06-12",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/775.svg",
            "id" : 775,
            "name" : "Greece",
            "shortName" : "Greece",
            "tla" : "GRE"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "2000-07-02",
         "id" : 671,
         "startDate" : "2000-06-10",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/773.svg",
            "id" : 773,
            "name" : "France",
            "shortName" : "France",
            "tla" : "FRA"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1996-06-30",
         "id" : 670,
         "startDate" : "1996-06-08",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/759.svg",
            "id" : 759,
            "name" : "Germany",
            "shortName" : "Germany",
            "tla" : "GER"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1992-06-26",
         "id" : 661,
         "startDate" : "1992-06-10",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/782.svg",
            "id" : 782,
            "name" : "Denmark",
            "shortName" : "Denmark",
            "tla" : "DEN"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1988-06-25",
         "id" : 662,
         "startDate" : "1988-06-10",
         "winner" : {
            "crestUrl" : "https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg",
            "id" : 756,
            "name" : "Netherlands",
            "shortName" : "Netherlands",
            "tla" : "NLD"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1984-06-27",
         "id" : 663,
         "startDate" : "1984-06-12",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/773.svg",
            "id" : 773,
            "name" : "France",
            "shortName" : "France",
            "tla" : "FRA"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1980-06-22",
         "id" : 664,
         "startDate" : "1980-06-11",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/759.svg",
            "id" : 759,
            "name" : "Germany",
            "shortName" : "Germany",
            "tla" : "GER"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1976-06-20",
         "id" : 665,
         "startDate" : "1976-06-16",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/798.svg",
            "id" : 822,
            "name" : "Czechoslovakia",
            "shortName" : null,
            "tla" : null
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1972-06-18",
         "id" : 666,
         "startDate" : "1972-06-14",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/759.svg",
            "id" : 759,
            "name" : "Germany",
            "shortName" : "Germany",
            "tla" : "GER"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1968-06-10",
         "id" : 667,
         "startDate" : "1968-06-05",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/784.svg",
            "id" : 784,
            "name" : "Italy",
            "shortName" : "Italy",
            "tla" : "ITA"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1964-06-21",
         "id" : 668,
         "startDate" : "1964-06-17",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/760.svg",
            "id" : 760,
            "name" : "Spain",
            "shortName" : "Spain",
            "tla" : "ESP"
         }
      },
      {
         "currentMatchday" : null,
         "endDate" : "1960-07-10",
         "id" : 669,
         "startDate" : "1960-07-06",
         "winner" : {
            "crestUrl" : "https://crests.football-data.org/9166.svg",
            "id" : 9166,
            "name" : "Soviet Union",
            "shortName" : "USSR",
            "tla" : "USSR"
         }
      }
   ]
}
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