Archived
Private
Public Access
1
0

fixed some backend errors + added timing management back on home page

This commit is contained in:
2023-09-05 08:24:25 +02:00
parent f3cf6977c4
commit 80ba0dc027
4 changed files with 7 additions and 3 deletions

View File

@@ -64,6 +64,7 @@ public class IServController : ControllerBase {
var list = html.DocumentNode.SelectSingleNode("//body/div/div[2]/div[3]/div/div/div[2]/div/div/div/div/ul[1]");
var courses = new List<string>();
if (list?.ChildNodes == null) return new SingleResult<string[]> { Value = Array.Empty<string>() };
foreach (var child in list.ChildNodes) {
if (child.ChildNodes.Count < 1) continue;
courses.Add(child.ChildNodes[0].InnerText);