correct " and '

This commit is contained in:
Mylloon 2022-01-13 22:53:43 +01:00
parent 3464da3c9e
commit 760775c604
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -18,7 +18,7 @@ class Universite:
def ecrirePageHTML(self, texte):
"""Affiche la page HTML pour le debug."""
with open("page.html", "w") as f:
with open("page.html", 'w') as f:
f.write(texte)
def recuperationNotes(self):
@ -55,8 +55,8 @@ class Universite:
for attrs in soup.findAll("table"):
try:
texte = str(attrs).split("thead")[1][2:-2]
while ' ' in texte:
texte = texte.replace(' ', ' ')
while " " in texte:
texte = texte.replace(" ", ' ')
return texte
except:
pass