Fixed age week alignment.

This commit is contained in:
Christian P. MOMON 2021-05-08 22:42:27 +02:00
parent c4d466bf54
commit 349a378f46

View file

@ -145,8 +145,8 @@ public class AgirStatoolUtils
if (start != null)
{
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
LocalDate date = normaliseWeekDate(start).plusDays(6);
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
{
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
@ -181,8 +181,8 @@ public class AgirStatoolUtils
if (start != null)
{
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
LocalDate date = normaliseWeekDate(start).plusDays(6);
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
{
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
@ -217,8 +217,8 @@ public class AgirStatoolUtils
if (start != null)
{
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
LocalDate date = normaliseWeekDate(start).plusDays(6);
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
{
double stat = project.issues().extractActivedAt(date).computeMedian(date);
@ -253,8 +253,8 @@ public class AgirStatoolUtils
if (start != null)
{
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
LocalDate date = normaliseWeekDate(start).plusDays(6);
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
{
Stat stat = project.issues().extractActivedAt(date).computeStat(date);