Fix matches url

pull/87/head
Stijn De Clercq 2021-08-19 20:47:53 +02:00
parent daae31a298
commit bf9b9c23b0
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from bs4 import BeautifulSoup
from functions import config
import re
from requests import get
@ -38,7 +39,8 @@ def getJPLMatches(week: int):
"""
JPL matches for a given matchweek
"""
current_day = get("https://api.sporza.be/web/soccer/matchdays/161733/{}".format(week))
jpl = config.get("jpl")
current_day = get(f"https://api.sporza.be/web/soccer/phases/{jpl}/matchdays/{week}")
# Something went wrong
if current_day.status_code != 200: