Fix bug in range check

This commit is contained in:
2024-12-30 21:42:58 +01:00
parent b6bc2ae25c
commit 9edb3d17de

View File

@@ -129,7 +129,7 @@ public class SolarService
{ {
current = (current.Year, current.Month + 1); 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()); return new MonthSummariesResponse(results.ToArray());
} }