Fix "nicht bestanden"

This commit is contained in:
2024-04-15 10:00:48 +02:00
parent 8e0217087f
commit e700a7ad97

View File

@ -127,7 +127,7 @@ async def getResults(token, cookie: str, resl: str):
cols = row.find_all("td")
col = [[e.text.strip()] for e in cols]
if len(col) != 0:
if len(col[4][0]) == 0:
if len(col[4][0]) == 0 or len(col[2][0]) == 0:
tasks += [getPruefung(s, row.find("a")["href"])]
col[2] = i
i += 1
@ -158,7 +158,7 @@ async def getPruefung(s, url):
col = [e.text.strip() for e in cols]
if len(col) == 6 and len(col[3]) <= 13:
if len(col[3]) != 0:
ret += [col[0] + ": " + col[3][:3]]
ret += [col[0] + ": " + col[3]]
if ret[-1][0] == ':':
ret[-1] = "Gesamt" + ret[-1]
if len(ret) == 0: