axel3rd / mpg-coach-bot

MPG (Mon Petit Gazon) coach bot, to automate and optimize weekly actions
https://axel3rd.github.io/mpg-coach-bot/
MIT License
23 stars 8 forks source link

Eff. = 0 #101

Closed ghost closed 5 years ago

ghost commented 5 years ago

Describe the bug

Hello,

Maybe nothing or something that will correct itself later today but eff. is 0 for all my EPL players this morning.

Optimized team: +---+---------------------+------+----+ | P | Player name | Eff. | Q. | +---+---------------------+------+----+ | G | Fabianski Lukasz | 0.00 | 25 | | G | Heaton Tom | 0.00 | 18 | | G | Rui Patrício | 0.00 | 15 | +---+---------------------+------+----+ | D | Diop Issa | 0.00 | 21 | | D | Pieters Erik | 0.00 | 13 | | D | Guilbert Frederic | 0.00 | 13 | | D | Vestergaard Jannik | 0.00 | 12 | | D | Cuco Martina | 0.00 | 12 | | D | Stearman Richard | 0.00 | 12 | | D | Kiko Femenía | 0.00 | 11 | | D | Holebas José | 0.00 | 10 | | D | Engels Björn | 0.00 | 10 | | D | Angeliño | 0.00 | 9 | | D | Cédric Soares | 0.00 | 9 | | D | Dawson Craig | 0.00 | 6 | +---+---------------------+------+----+ | M | Ndombele Tanguy | 0.00 | 22 | | M | Kovacic Mateo | 0.00 | 13 | | M | Fornals Pablo | 0.00 | 13 | | M | Djenepo Moussa | 0.00 | 12 | | M | Trossard Leandro | 0.00 | 11 | | M | Zinchenko Oleksandr | 0.00 | 10 | | M | Mount Mason | 0.00 | 10 | | M | Jota | 0.00 | 7 | | M | James Daniel | 0.00 | 1 | +---+---------------------+------+----+ | A | Jiménez Raúl | 0.00 | 28 | | A | Deulofeu Gerard | 0.00 | 18 | | A | Wesley | 0.00 | 12 | | A | Giroud Olivier | 0.00 | 10 | | A | El Ghazi Anwar | 0.00 | 9 | | A | Drmic Josip | 0.00 | 8 | +---+---------------------+------+----+

Join debug files

Depending your championship, join data files set in attachment.

  1. The MPG JSon Response of these Request on https://api.monpetitgazon.com (use the browser network monitor - F12, see wiki Get MPG data for opening a bug for more details):
  1. The Players statistics data, one JSon from:
  1. The Players statistics time update data : https://www.mpgstats.fr/json/leagues.json

  2. The Injury / Suspended data, one full HTML from:

Expected behavior

A clear and concise description of what you expected to happen.

If problem on update team feature, please join the Request and Response of POST /league/[yourLeagueId]/coach when you save your team in MPG.

axel3rd commented 5 years ago

@nicobal : Perhaps you run the program when MPG Stats has initiated Day 1 with value to 0 for all players ?

I have checked now and I have the correct result, with same average as https://www.mpgstats.fr/top/Premier-League/custom for players which have not scored any goal this last weekend.

Ca you re-confirm this bug ?

NB : There is a one our cache on these data => you can ensure no-cache by deleting any mpg-coach-bot-* files in directory:

ghost commented 5 years ago

Oh I see now. Yes, MPGStat has an average of 0 for EPL players right now. For Ligue 1, the average is the grade of the first game.

axel3rd commented 5 years ago

Humm ... from my side (France), when I access to https://www.mpgstats.fr/json/customteam.json/Premier-League, the England championship is up to date (day 1 with value > 0):

image

ghost commented 5 years ago

It works for me as well now!