Skip to content

Commit

Permalink
Merge pull request #88 from simeneilevstjonn/develop
Browse files Browse the repository at this point in the history
Fix wrong operator for today's remaining lessons
  • Loading branch information
simeneilevstjonn authored May 6, 2021
2 parents d8e0cbc + f5fdfa0 commit 9611e12
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 9611e12

Please sign in to comment.