From e700a7ad9748b7823ebbe8c1fefb755af073baf2 Mon Sep 17 00:00:00 2001 From: paulmart-n Date: Mon, 15 Apr 2024 10:00:48 +0200 Subject: [PATCH] Fix "nicht bestanden" --- fetchDUALIS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetchDUALIS.py b/fetchDUALIS.py index dac1e01..46c7069 100644 --- a/fetchDUALIS.py +++ b/fetchDUALIS.py @@ -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: