Fix bug in range check
This commit is contained in:
@@ -129,7 +129,7 @@ public class SolarService
|
||||
{
|
||||
current = (current.Year, current.Month + 1);
|
||||
}
|
||||
} while (current.Year < toYear || current.Month < toMonth);
|
||||
} while (current.Year < toYear || (current.Year == toYear && current.Month <= toMonth));
|
||||
return new MonthSummariesResponse(results.ToArray());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user