21 coaches online • Server time: 09:12
* * * Did you know? The best blocker is Taku the Second with 551 casualties.
Log in
Recent Forum Topics goto Post A few recent site up...goto Post Open [L]eague Cup - ...goto Post unable to get past &...
Candlejack
Last seen 1 hour ago
Candlejack (5844)
Overall
Mega-Star
Overall
Record
468/175/180
Win Percentage
67%
Archive

2024

2024-10-17 09:49:03
rating 6
2024-08-30 11:54:13
rating 5.7
2024-01-26 18:34:34
rating 6

2023

2023-11-28 07:59:39
rating 6
2023-09-29 23:03:37
rating 6
2023-05-03 19:01:26
rating 6
2023-04-30 19:34:13
rating 6
2023-02-13 00:01:56
rating 6
2023-02-05 13:08:00
rating 6

2022

2022-11-14 23:32:41
rating 6
2022-08-12 22:07:38
rating 5.9
2022-04-16 11:53:28
rating 6
2022-04-15 20:16:31
rating 6
2022-03-08 07:16:28
rating 6

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!