Skip to content

Commit

Permalink
Fix issue with groups, that contains *
Browse files Browse the repository at this point in the history
  • Loading branch information
wh0o7 committed Oct 10, 2023
1 parent f65605c commit e73759d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TeachersTimetable/Services/ParseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ await this._botService.SendAdminMessageAsync(new SendMessageArgs(0,
{
Index = int.Parse(lessonNumbers[j].Text.Replace("", "")),
Cabinet = cabinet,
Group = lessonNames[j].Text
Group = lessonNames[j].Text.Replace("*",string.Empty)
});
}

Expand Down Expand Up @@ -204,7 +204,7 @@ await this._botService.SendAdminMessageAsync(new SendMessageArgs(0,

if (teacherInfoFromTimetable is null || teacherInfoFromTimetable.Equals(teacherInfo)) continue;
teacherUpdatedList.Add(teacherInfo.Name);
try
try
{
notificationUsersList.AddRange((await this._mongoService.Database.GetCollection<User>("Users")
.FindAsync(u => u.Teacher != null && u.Notifications && u.Teacher == teacherInfo.Name)).ToList());
Expand Down

0 comments on commit e73759d

Please sign in to comment.