Skip to content

Commit

Permalink
Attempt to fix teachers parse
Browse files Browse the repository at this point in the history
  • Loading branch information
litolax committed Sep 24, 2023
1 parent 2df693a commit 894413a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TeachersTimetable/Services/ParseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ public class ParseService : IParseService
private static string LastWeekHtmlContent { get; set; }

public ParseService(IMongoService mongoService, IBotService botService, IFirefoxService firefoxService,
IDistributionService distributionService, IConfig<TeachersConfig> config)
IDistributionService distributionService, IConfig<TeachersConfig> teachers)
{
this._mongoService = mongoService;
this._botService = botService;
this._firefoxService = firefoxService;
this._distributionService = distributionService;
this.Teachers = config.Entries.Teachers;
this.Teachers = teachers.Entries.Teachers;
Console.WriteLine("Teachers: " + teachers.Entries.Teachers.Length);
if (!Directory.Exists("./cachedImages")) Directory.CreateDirectory("./cachedImages");

var parseTimer = new Timer(1_000_000)
Expand Down

0 comments on commit 894413a

Please sign in to comment.