Diadochokinetic / AK-Tippspiel

MIT License
0 stars 0 forks source link

Incomplete seasons #1

Closed Diadochokinetic closed 1 month ago

Diadochokinetic commented 1 month ago

It appears that some seasons are incomplete.


import urllib.request
import json

league = "bl3"
year = 2022
match_day = 5

contents = urllib.request.urlopen(
    f"http://www.openligadb.de/api/getmatchdata/{league}/{year}/{match_day}"
).read()
data = json.loads(contents)
data

yields an empty list.

Incomplete seasons should be excluded, since they don't provide useful performance statistics.

Diadochokinetic commented 1 month ago

Fixed with https://github.com/Diadochokinetic/AK-Tippspiel/commit/4c093bed4721bc5bb669b89ec7fa84b7837849e0