102 coaches online • Server time: 21:17
* * * Did you know? The number of matches played is 2788159.
Log in
Recent Forum Topics goto Post [SL] Seasonsgoto Post A guide for "Fu...goto Post WIL BB 2020 Discussi...
Candlejack
Last seen 1 hour ago
Shambling Undead
Super Star
Shambling Undead
Record
218/78/240
Win Percentage
48%
Chaos Chosen
Star
Chaos Chosen
Record
183/83/244
Win Percentage
44%
Overall
[R]
Legend
Overall
Record
1642/634/1460
Win Percentage
52%
Archive

2021

2021-07-29 00:55:10
rating 6
2021-07-27 23:11:35
rating 6

2020

2020-11-08 15:15:59
rating 4.8
2020-07-01 22:02:23
rating 5

2019

2019-05-01 21:44:03
rating 6

2017

2017-10-03 19:41:33
rating 6
2017-04-16 22:08:12
rating 6

2016

2016-06-09 00:16:52
rating 5.8
2021-07-29 00:55:10
18 votes, rating 6
League stats again
Obviously I cannot be trusted. After my post from yesterday I unexpectedly found myself today with a few hours of free time.

<tl;dr> League stats should be working again

For those interested in tech babble:

The issue was that player names were not displayed anymore. The root of this lay in me using html scraping from the player page to load the name and some additional data. The reason for this was that there is no api call for exactly this combination of data.

Now it seems Christer dared to change the html code of said page (I know, the audacity!). So I could have just checked how to adjust the selector for the fields and be happy. But it is just bad practice so I decided to switch to the json api for the player and load additional data from the json team endpoint as well.

This is a bit ugly as the rest of the data is loaded via the older xml api but from a first glance it does not seem easy to just switch to a different endpoint and get the same data. So now I have xml and json parsing in the same application but that is not the end of the world ;-)

As a bonus I threw in a dependency update to hopefully improve stability and security.

I know some of you have requested additional fields/changes to some stats. But that really has to wait as this fix already took longer than I was hoping for and it was actually coincidence my plans for this evening changed on short notice.

Anyways thanks for reading and I hope I got everything fixed again :-)
Rate this entry
Comments
Posted by Klazam on 2021-07-29 02:06:27
You’re a badass
Posted by sokeeffe on 2021-07-29 09:28:49
Praise Candlejack!
Posted by bakadon on 2021-07-29 10:17:19
Amazing what some people do, love the first para after your previous post :) thank you
Posted by spelledaren on 2021-07-29 11:21:04
So great.
Posted by Seventyone on 2021-07-29 15:19:17
So many phrases that seem to me to be meaningless but thanks for this!