rfindley said...
meneldal said...
For Timeline I looked at the code and I don't feel confident it prevents the issues of timeout from the other version which make it unusable after level 40 unless both your connection and WK are in a good mood.
Good to know... I hadn't heard of that issue. I'm working on a highly improved version anyway, so maybe I'll re-mention it here when it's done. I'm integrating it with a bigger data framework that caches lots of data to eliminate the vast majority of API calls that various scripts require.
Until then, here's a simple though inelegant fix... replace the api_calls and api_colors definitions with the following:
api_calls = ['radicals', 'kanji', 'vocabulary/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25', 'vocabulary/26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50'];
api_colors = ['#0096e7', '#ee00a1', '#9800e8', '#9800e8'];
Or you can break it into smaller chunks, but this seems to work for me.