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

How would we know who advances to next stage? #123

Open
juaning opened this issue Dec 2, 2022 · 2 comments
Open

How would we know who advances to next stage? #123

juaning opened this issue Dec 2, 2022 · 2 comments

Comments

@juaning
Copy link

juaning commented Dec 2, 2022

It seems the match data is missing who advances to the next stage for knockout stage, my understanding is the score captures regular time score. What about extra time and penalties? And who advances to next stage?

Thanks for the great work!

@klevisndoka
Copy link

In Api call /api/v1/match you can find matches with different types.

  • group
  • R16
  • QR
  • semi
  • 3RD
  • FIN

There you can find matches for each stage.
If you need who advanced groups just look for matches on "type" = "R16"

@juaning
Copy link
Author

juaning commented Dec 2, 2022

In Api call /api/v1/match you can find matches with different types.

  • group
  • R16
  • QR
  • semi
  • 3RD
  • FIN

There you can find matches for each stage. If you need who advanced groups just look for matches on "type" = "R16"

My question is, how do you know who won the match, and if it was in regular time, extra time or penalties? that info is not present in api/v1/match

So, here, how do you know how the match ended?
{
"_id": "638923be0eab2168b945af34",
"away_score": 0,
"away_scorers": [
"null"
],
"away_team_id": "5",
"finished": "FALSE",
"group": "R16",
"home_score": 0,
"home_scorers": [
"null"
],
"home_team_id": "3",
"id": "51",
"local_date": "12/4/2022 22:00",
"matchday": "15",
"persian_date": "1400-09-13 22:30",
"stadium_id": "1",
"time_elapsed": "notstarted",
"type": "R16",
"home_team_fa": "سنگال",
"away_team_fa": "انگلستان",
"home_team_en": "Senegal",
"away_team_en": "England",
"home_flag": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Flag_of_Senegal.svg/125px-Flag_of_Senegal.svg.png",
"away_flag": "https://upload.wikimedia.org/wikipedia/en/thumb/b/be/Flag_of_England.svg/125px-Flag_of_England.svg.png"
}

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

2 participants