Commit d56c792e authored by Guus Hoekman's avatar Guus Hoekman

update season, cron job no longer working

parent 9d0ea16a
Pipeline #70342112 passed with stage
in 1 minute and 35 seconds
......@@ -48,7 +48,9 @@ layout: base
</section>
{% if page.latest %}
<script src="https://data.canntables.com/{{ page.code }}.js"></script>
<!-- fix curl -->
<!-- <script src="https://data.canntables.com/{{ page.code }}.js"></script> -->
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ page.code }}.js"></script>
{% else %}
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ page.code }}.js"></script>
{% endif %}
......
......@@ -47,7 +47,9 @@ layout: base
{% for league in page.leagues %}
{% if page.latest %}
<script src="https://data.canntables.com/{{ league.code }}.js"></script>
<!-- need to fix curl -->
<!-- <script src="https://data.canntables.com/{{ league.code }}.js"></script> -->
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ league.code }}.js"></script>
{% else %}
<script src="/js/{{ page.season | replace: '/', '-' }}/{{ league.code }}.js"></script>
{% endif %}
......
......@@ -81,13 +81,22 @@ title: Home
</section>
</article>
<script src="https://data.canntables.com/de.js"></script>
<script src="https://data.canntables.com/en.js"></script>
<script src="https://data.canntables.com/es.js"></script>
<script src="https://data.canntables.com/fr.js"></script>
<script src="https://data.canntables.com/it.js"></script>
<script src="https://data.canntables.com/nl.js"></script>
<script src="https://data.canntables.com/pt.js"></script>
<!-- fix curl -->
<!-- <script src="https://data.canntables.com/de.js"></script> -->
<!-- <script src="https://data.canntables.com/en.js"></script> -->
<!-- <script src="https://data.canntables.com/es.js"></script> -->
<!-- <script src="https://data.canntables.com/fr.js"></script> -->
<!-- <script src="https://data.canntables.com/it.js"></script> -->
<!-- <script src="https://data.canntables.com/nl.js"></script> -->
<!-- <script src="https://data.canntables.com/pt.js"></script> -->
<script src="/js/2018-19/de.js/"></script>
<script src="/js/2018-19/en.js/"></script>
<script src="/js/2018-19/es.js/"></script>
<script src="/js/2018-19/fr.js/"></script>
<script src="/js/2018-19/it.js/"></script>
<script src="/js/2018-19/nl.js/"></script>
<script src="/js/2018-19/pt.js/"></script>
<script>
var leagues = [de, en, es, fr, it, nl, pt];
var season = "2018-19";
......
var de = {"competition":"Bundesliga","code_string":"de","source":"https://en.wikipedia.org/wiki/2018%E2%80%9319_Bundesliga#League_table","last_updated":"2019-02-18T23:09:20Z","teams":18,"cl":[1,2,3,4],"el":[5,6],"relegation_play_offs":[16],"relegation":[17,18],"standings":[{"position":1,"name":"BV Borussia 09 Dortmund","played":22,"points":51,"difference":31},{"position":2,"name":"FC Bayern München","played":22,"points":48,"difference":24},{"position":3,"name":"Borussia Mönchengladbach","played":22,"points":43,"difference":20},{"position":4,"name":"RB Leipzig","played":22,"points":41,"difference":22},{"position":5,"name":"Bayer 04 Leverkusen","played":22,"points":36,"difference":7},{"position":6,"name":"VfL Wolfsburg","played":22,"points":35,"difference":5},{"position":7,"name":"Eintracht Frankfurt","played":22,"points":34,"difference":13},{"position":8,"name":"TSG 1899 Hoffenheim","played":22,"points":33,"difference":12},{"position":9,"name":"Hertha BSC","played":22,"points":32,"difference":3},{"position":10,"name":"SV Werder Bremen","played":22,"points":31,"difference":4},{"position":11,"name":"1. FSV Mainz 05","played":22,"points":27,"difference":-13},{"position":12,"name":"TSV Fortuna 95 Düsseldorf","played":22,"points":25,"difference":-16},{"position":13,"name":"SC Freiburg","played":22,"points":24,"difference":-8},{"position":14,"name":"FC Schalke 04","played":22,"points":23,"difference":-7},{"position":15,"name":"FC Augsburg","played":22,"points":18,"difference":-9},{"position":16,"name":"VfB Stuttgart","played":22,"points":15,"difference":-32},{"position":17,"name":"Hannover 96","played":22,"points":14,"difference":-27},{"position":18,"name":"1. FC Nürnberg","played":22,"points":13,"difference":-29}]}
var de = {
"competition": "Bundesliga",
"code_string": "de",
"source": "https://en.wikipedia.org/wiki/2018%E2%80%9319_Bundesliga#League_table",
"last_updated": "2019-05-18T23:09:20Z",
"teams": 18,
"cl": [
1,
2,
3,
4
],
"el": [
5,
6,
7
],
"relegation": [
16,
17,
18
],
"standings": [
{
"position": 1,
"name": "Bayern Munich",
"played": 34,
"points": 78,
"difference": "56"
},
{
"position": 2,
"name": "Borussia Dortmund",
"played": 34,
"points": 76,
"difference": "37"
},
{
"position": 3,
"name": "RB Leipzig",
"played": 34,
"points": 66,
"difference": "34"
},
{
"position": 4,
"name": "Bayer Leverkusen",
"played": 34,
"points": 58,
"difference": "17"
},
{
"position": 5,
"name": "Borussia Mönchengladbach",
"played": 34,
"points": 55,
"difference": "13"
},
{
"position": 6,
"name": "VfL Wolfsburg",
"played": 34,
"points": 55,
"difference": "12"
},
{
"position": 7,
"name": "Eintracht Frankfurt",
"played": 34,
"points": 54,
"difference": "12"
},
{
"position": 8,
"name": "Werder Bremen",
"played": 34,
"points": 53,
"difference": "9"
},
{
"position": 9,
"name": "1899 Hoffenheim",
"played": 34,
"points": 51,
"difference": "18"
},
{
"position": 10,
"name": "Fortuna Düsseldorf",
"played": 34,
"points": 44,
"difference": "−16 "
},
{
"position": 11,
"name": "Hertha BSC",
"played": 34,
"points": 43,
"difference": "−8 "
},
{
"position": 12,
"name": "Mainz 05",
"played": 34,
"points": 43,
"difference": "−11 "
},
{
"position": 13,
"name": "SC Freiburg",
"played": 34,
"points": 36,
"difference": "−15 "
},
{
"position": 14,
"name": "Schalke 04",
"played": 34,
"points": 33,
"difference": "−18 "
},
{
"position": 15,
"name": "FC Augsburg",
"played": 34,
"points": 32,
"difference": "−20 "
},
{
"position": 16,
"name": "VfB Stuttgart",
"played": 34,
"points": 28,
"difference": "−38 "
},
{
"position": 17,
"name": "Hannover 96",
"played": 34,
"points": 21,
"difference": "−40 "
},
{
"position": 18,
"name": "1. FC Nürnberg",
"played": 34,
"points": 19,
"difference": "−42 "
}
]
}
\ No newline at end of file
var en = {"competition":"Premier League","code_string":"en","source":"https://en.wikipedia.org/wiki/2018%E2%80%9319_Premier_League#League_table","last_updated":"2019-02-12T21:10:02Z","teams":20,"cl":[1,2,3,4],"el":[5],"relegation":[18,19,20],"standings":[{"position":1,"name":"Manchester City FC","played":27,"points":65,"difference":54},{"position":2,"name":"Liverpool FC","played":26,"points":65,"difference":44},{"position":3,"name":"Tottenham Hotspur FC","played":26,"points":60,"difference":29},{"position":4,"name":"Manchester United FC","played":26,"points":51,"difference":17},{"position":5,"name":"Arsenal FC","played":26,"points":50,"difference":16},{"position":6,"name":"Chelsea FC","played":26,"points":50,"difference":16},{"position":7,"name":"Wolverhampton Wanderers FC","played":26,"points":39,"difference":1},{"position":8,"name":"Watford FC","played":26,"points":37,"difference":0},{"position":9,"name":"Everton FC","played":27,"points":33,"difference":-3},{"position":10,"name":"West Ham United FC","played":26,"points":33,"difference":-7},{"position":11,"name":"AFC Bournemouth","played":26,"points":33,"difference":-10},{"position":12,"name":"Leicester City FC","played":26,"points":32,"difference":-3},{"position":13,"name":"Crystal Palace FC","played":26,"points":27,"difference":-7},{"position":14,"name":"Brighton & Hove Albion FC","played":26,"points":27,"difference":-11},{"position":15,"name":"Burnley FC","played":26,"points":27,"difference":-18},{"position":16,"name":"Newcastle United FC","played":26,"points":25,"difference":-12},{"position":17,"name":"Cardiff City FC","played":26,"points":25,"difference":-23},{"position":18,"name":"Southampton FC","played":26,"points":24,"difference":-16},{"position":19,"name":"Fulham FC","played":26,"points":17,"difference":-33},{"position":20,"name":"Huddersfield Town AFC","played":26,"points":11,"difference":-34}]}
var en = {
"competition": "Premier League",
"code_string": "en",
"source": "https://en.wikipedia.org/wiki/2018%E2%80%9319_Premier_League#League_table",
"last_updated": "2019-05-12T21:10:02Z",
"teams": 20,
"cl": [
1,
2,
3,
4
],
"el": [
5,
6,
7
],
"relegation": [
18,
19,
20
],
"standings": [
{
"position": 1,
"name": "Manchester City",
"played": 38,
"points": 98,
"difference": "72"
},
{
"position": 2,
"name": "Liverpool",
"played": 38,
"points": 97,
"difference": "67"
},
{
"position": 3,
"name": "Chelsea",
"played": 38,
"points": 72,
"difference": "24"
},
{
"position": 4,
"name": "Tottenham Hotspur",
"played": 38,
"points": 71,
"difference": "28"
},
{
"position": 5,
"name": "Arsenal",
"played": 38,
"points": 70,
"difference": "22"
},
{
"position": 6,
"name": "Manchester United",
"played": 38,
"points": 66,
"difference": "11"
},
{
"position": 7,
"name": "Wolverhampton Wanderers",
"played": 38,
"points": 57,
"difference": "1"
},
{
"position": 8,
"name": "Everton",
"played": 38,
"points": 54,
"difference": "8"
},
{
"position": 9,
"name": "Leicester City",
"played": 38,
"points": 52,
"difference": "3"
},
{
"position": 10,
"name": "West Ham United",
"played": 38,
"points": 52,
"difference": "−3 "
},
{
"position": 11,
"name": "Watford",
"played": 38,
"points": 50,
"difference": "−7 "
},
{
"position": 12,
"name": "Crystal Palace",
"played": 38,
"points": 49,
"difference": "−2 "
},
{
"position": 13,
"name": "Newcastle United",
"played": 38,
"points": 45,
"difference": "−6 "
},
{
"position": 14,
"name": "Bournemouth",
"played": 38,
"points": 45,
"difference": "−14 "
},
{
"position": 15,
"name": "Burnley",
"played": 38,
"points": 40,
"difference": "−23 "
},
{
"position": 16,
"name": "Southampton",
"played": 38,
"points": 39,
"difference": "−20 "
},
{
"position": 17,
"name": "Brighton & Hove Albion",
"played": 38,
"points": 36,
"difference": "−25 "
},
{
"position": 18,
"name": "Cardiff City",
"played": 38,
"points": 34,
"difference": "−35 "
},
{
"position": 19,
"name": "Fulham",
"played": 38,
"points": 26,
"difference": "−47 "
},
{
"position": 20,
"name": "Huddersfield Town",
"played": 38,
"points": 16,
"difference": "−54 "
}
]
}
\ No newline at end of file
var es = {"competition":"La Liga","code_string":"es","source":"https://en.wikipedia.org/wiki/2018%E2%80%9319_La_Liga#League_table","last_updated":"2019-02-18T23:39:19Z","teams":20,"cl":[1,2,3,4],"el":[5,6],"relegation":[18,19,20],"standings":[{"position":1,"name":"FC Barcelona","played":24,"points":54,"difference":38},{"position":2,"name":"Club Atlético de Madrid","played":24,"points":47,"difference":17},{"position":3,"name":"Real Madrid CF","played":24,"points":45,"difference":12},{"position":4,"name":"Sevilla FC","played":24,"points":37,"difference":10},{"position":5,"name":"Getafe CF","played":24,"points":36,"difference":9},{"position":6,"name":"Deportivo Alavés","played":24,"points":36,"difference":-3},{"position":7,"name":"Real Sociedad de Fútbol","played":24,"points":34,"difference":5},{"position":8,"name":"Real Betis Balompié","played":24,"points":33,"difference":-3},{"position":9,"name":"Valencia CF","played":24,"points":32,"difference":4},{"position":10,"name":"SD Eibar","played":24,"points":31,"difference":-1},{"position":11,"name":"Levante UD","played":24,"points":30,"difference":-7},{"position":12,"name":"Athletic Club","played":24,"points":30,"difference":-4},{"position":13,"name":"RCD Espanyol de Barcelona","played":24,"points":29,"difference":-10},{"position":14,"name":"CD Leganés","played":24,"points":29,"difference":-5},{"position":15,"name":"Girona FC","played":24,"points":27,"difference":-9},{"position":16,"name":"Real Valladolid CF","played":24,"points":26,"difference":-10},{"position":17,"name":"RC Celta de Vigo","played":24,"points":24,"difference":-7},{"position":18,"name":"Villarreal CF","played":24,"points":23,"difference":-5},{"position":19,"name":"Rayo Vallecano de Madrid","played":24,"points":23,"difference":-14},{"position":20,"name":"SD Huesca","played":24,"points":18,"difference":-17}]}
var es = {
"competition": "La Liga",
"code_string": "es",
"source": "https://en.wikipedia.org/wiki/2018%E2%80%9319_La_Liga#League_table",
"last_updated": "2019-05-26T23:39:19Z",
"teams": 20,
"cl": [
1,
2,
3,
4
],
"el": [
5,
6,
7
],
"relegation": [
18,
19,
20
],
"standings": [
{
"position": 1,
"name": "Barcelona",
"played": 38,
"points": 87,
"difference": "54"
},
{
"position": 2,
"name": "Atlético Madrid",
"played": 38,
"points": 76,
"difference": "26"
},
{
"position": 3,
"name": "Real Madrid",
"played": 38,
"points": 68,
"difference": "17"
},
{
"position": 4,
"name": "Valencia",
"played": 38,
"points": 61,
"difference": "16"
},
{
"position": 5,
"name": "Getafe",
"played": 38,
"points": 59,
"difference": "13"
},
{
"position": 6,
"name": "Sevilla",
"played": 38,
"points": 59,
"difference": "15"
},
{
"position": 7,
"name": "Espanyol",
"played": 38,
"points": 53,
"difference": "−2 "
},
{
"position": 8,
"name": "Athletic Bilbao",
"played": 38,
"points": 53,
"difference": "−4 "
},
{
"position": 9,
"name": "Real Sociedad",
"played": 38,
"points": 50,
"difference": "−1 "
},
{
"position": 10,
"name": "Real Betis",
"played": 38,
"points": 50,
"difference": "−8 "
},
{
"position": 11,
"name": "Alavés",
"played": 38,
"points": 50,
"difference": "−11 "
},
{
"position": 12,
"name": "Eibar",
"played": 38,
"points": 47,
"difference": "−4 "
},
{
"position": 13,
"name": "Leganés",
"played": 38,
"points": 45,
"difference": "−6 "
},
{
"position": 14,
"name": "Villarreal",
"played": 38,
"points": 44,
"difference": "−3 "
},
{
"position": 15,
"name": "Levante",
"played": 38,
"points": 44,
"difference": "−7 "
},
{
"position": 16,
"name": "Valladolid",
"played": 38,
"points": 41,
"difference": "−19 "
},
{
"position": 17,
"name": "Celta Vigo",
"played": 38,
"points": 41,
"difference": "−9 "
},
{
"position": 18,
"name": "Girona",
"played": 38,
"points": 37,
"difference": "−16 "
},
{
"position": 19,
"name": "Huesca",
"played": 38,
"points": 33,
"difference": "−22 "
},
{
"position": 20,
"name": "Rayo Vallecano",
"played": 38,
"points": 32,
"difference": "−29 "
}
]
}
\ No newline at end of file
var fr = {"competition":"Ligue 1","code_string":"fr","source":"https://en.wikipedia.org/wiki/2018%E2%80%9319_Ligue_1#League_table","last_updated":"2019-02-18T09:30:07Z","teams":20,"cl":[1,2,3],"el":[4],"relegation_play_offs":[18],"relegation":[19,20],"standings":[{"position":1,"name":"Paris Saint-Germain FC","played":23,"points":62,"difference":56},{"position":2,"name":"Lille OSC","played":25,"points":50,"difference":20},{"position":3,"name":"Olympique Lyonnais","played":25,"points":46,"difference":12},{"position":4,"name":"Olympique de Marseille","played":25,"points":40,"difference":6},{"position":5,"name":"AS Saint-Étienne","played":25,"points":40,"difference":4},{"position":6,"name":"Montpellier HSC","played":24,"points":38,"difference":12},{"position":7,"name":"Stade de Reims","played":25,"points":38,"difference":1},{"position":8,"name":"OGC de Nice Côte d'Azur","played":25,"points":37,"difference":-7},{"position":9,"name":"RC Strasbourg Alsace","played":25,"points":36,"difference":11},{"position":10,"name":"Nîmes Olympique","played":25,"points":36,"difference":2},{"position":11,"name":"Stade Rennais FC 1901","played":25,"points":36,"difference":1},{"position":12,"name":"Angers SCO","played":25,"points":33,"difference":1},{"position":13,"name":"FC Girondins de Bordeaux","played":24,"points":31,"difference":-1},{"position":14,"name":"FC Nantes","played":25,"points":27,"difference":-4},{"position":15,"name":"Toulouse FC","played":25,"points":27,"difference":-12},{"position":16,"name":"AS Monaco FC","played":25,"points":22,"difference":-17},{"position":17,"name":"Amiens SC","played":25,"points":21,"difference":-21},{"position":18,"name":"Dijon Football Côte d'Or","played":24,"points":20,"difference":-18},{"position":19,"name":"SM Caen","played":25,"points":19,"difference":-13},{"position":20,"name":"En Avant Guingamp","played":24,"points":14,"difference":-33}]}
var fr = {
"competition": "Ligue 1",
"code_string": "fr",
"source": "https://en.wikipedia.org/wiki/2018%E2%80%9319_Ligue_1#League_table",
"last_updated": "2019-05-24T23:30:07Z",
"teams": 20,
"cl": [
1,
2,
3
],
"el": [
4,
10,
11
],
"relegation": [
19,
20
],
"standings": [
{
"position": 1,
"name": "Paris Saint-Germain",
"played": 38,
"points": 91,
"difference": "70"
},
{
"position": 2,
"name": "Lille",
"played": 38,
"points": 75,
"difference": "35"
},
{
"position": 3,
"name": "Lyon",
"played": 38,
"points": 72,
"difference": "23"
},
{
"position": 4,
"name": "Saint-Étienne",
"played": 38,
"points": 66,
"difference": "18"
},
{
"position": 5,
"name": "Marseille",
"played": 38,
"points": 61,
"difference": "8"
},
{
"position": 6,
"name": "Montpellier",
"played": 38,
"points": 59,
"difference": "11"
},
{
"position": 7,
"name": "Nice",
"played": 38,
"points": 56,
"difference": "−5 "
},
{
"position": 8,
"name": "Reims",
"played": 38,
"points": 55,
"difference": "−3 "
},
{
"position": 9,
"name": "Nîmes",
"played": 38,
"points": 53,
"difference": "−1 "