Closed aminvakil closed 6 years ago
It depends on you: Which is the fairer method?
Match result at the end of 120 minutes.If it goes to penalty shooutous then the game must be draw.On Jun 30, 2018 4:03 PM, davidus05 notifications@github.com wrote:It depens on you: Which is the fairer method?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
I think so, too. But can you currently update the match results? I get an error 500 every time and my cron does not work ...
in src/Devlabs/SportifyBundle/Services/DataUpdates/Importer.php at line 110 -
$homeTeamId = $this->em->getRepository('DevlabsSportifyBundle:ApiMapping')
->getByEntityTypeAndApiObjectId('Team', $footballApi, $apiHomeTeamId)
->getEntityId();
$awayTeamId = $this->em->getRepository('DevlabsSportifyBundle:ApiMapping')
->getByEntityTypeAndApiObjectId('Team', $footballApi, $apiAwayTeamId)
->getEntityId();
Edit: It doesn't adds matches anymore.
Here's what the API returns for a match with extra time and penaties:
"result": {
"goalsHomeTeam": 1,
"goalsAwayTeam": 1,
"halfTime": {
"goalsHomeTeam": 1,
"goalsAwayTeam": 1
},
"extraTime": {
"goalsHomeTeam": 1,
"goalsAwayTeam": 1
},
"penaltyShootout": {
"goalsHomeTeam": 3,
"goalsAwayTeam": 2
}
}
Our logic is that we are getting the first two, which is the 90-minute result. This happens in here: https://github.com/dev-labs-bg/sportify/blob/master/src/Devlabs/SportifyBundle/Services/DataUpdates/Parsers/FootballDataOrg.php#L51 If you want, you can modify the logic and get the extraTime result.
In my opinion, the 90-min result is correct one to predict. At least that's what all the bookies (that I know) do.
Thanks for the reply, but it would be great that if it would fetch the data at all ... https://github.com/dev-labs-bg/sportify/issues/31
@davidus05 yeah but as I've said in the mentioned issue, in order to identify the problem I need more info on the error/exception that's returned.
Which score will be result of the match when matches end in 120 minutes or end in penalties? Will the final score be the goals scored by teams in 90 minutes or in 120 minutes or something else?