From cd3385f058b283712dd51b47c1f6b19d2a08d5ac Mon Sep 17 00:00:00 2001 From: wh0o7 Date: Wed, 8 Nov 2023 14:05:37 +0300 Subject: [PATCH] Maybe fix week notification#2 --- TeachersTimetable/Services/ParseService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TeachersTimetable/Services/ParseService.cs b/TeachersTimetable/Services/ParseService.cs index 013657a..96865fd 100644 --- a/TeachersTimetable/Services/ParseService.cs +++ b/TeachersTimetable/Services/ParseService.cs @@ -285,7 +285,7 @@ private async Task ParseWeek() await this._botService.SendAdminMessageAsync(new SendMessageArgs(0, "New interval is " + weekIntervalStr)); } - else IsNewInterval = true; + isIsNewInterval = !isIsNewInterval && IsNewInterval; var tempThHeaders = driver.FindElement( @@ -294,7 +294,7 @@ await this._botService.SendAdminMessageAsync(new SendMessageArgs(0, _thHeaders = new List(); foreach (var thHeader in tempThHeaders) _thHeaders.Add(new string(thHeader.Text)); } - + var table = driver.FindElements(By.XPath("/html/body/div[1]/div[2]/div/div[2]/div[1]/div/div")); Utils.HideTeacherElements(driver, h3); Utils.HideTeacherElements(driver, h2);