fixed premier league

This commit is contained in:
Justin 2022-03-04 23:00:20 +08:00 committed by GitHub
parent f7d6982012
commit e85d0113a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,7 +380,7 @@ def updateLeagueTables(api_key):
for league in leagues: for league in leagues:
if league == 'PREMIERLEAGUE': if league == 'PREMIERLEAGUE':
url += 'premierleague,' url += 'PREMIERLEAGUE,'
else: else:
url += league + ',' url += league + ','
@ -451,7 +451,7 @@ def updateLeagueEvents(api_key, time):
for league in leagues: for league in leagues:
if league == 'PREMIERLEAGUE': if league == 'PREMIERLEAGUE':
url += 'premierleague,' url += 'PREMIERLEAGUE,'
else: else:
url += league + ',' url += league + ','
url = url[:-1] # remove last comma url = url[:-1] # remove last comma