Skip to content

Commit

Permalink
Fix wrong operator for todays remaining lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
simeneilevstjonn committed May 6, 2021
1 parent d8e0cbc commit f5fdfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/LessonCounter/LessonCounterClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Dictionary<Subject, int> RemainingLessons
foreach ((Subject subject, Time time) in Schedule.Zip(Times, (x, y) => new Tuple<Subject, Time>(x, y)).ToList())
{
// Check that the lesson has not already started
if (time < new Time(DateTime.UtcNow.Hour, DateTime.UtcNow.Minute))
if (time > new Time(DateTime.UtcNow.Hour, DateTime.UtcNow.Minute))
{
// Increment subject counter
Remaining[subject]++;
Expand Down

0 comments on commit f5fdfa0

Please sign in to comment.