Fixed age week alignment.
This commit is contained in:
parent
c4d466bf54
commit
349a378f46
1 changed files with 8 additions and 8 deletions
|
@ -145,8 +145,8 @@ public class AgirStatoolUtils
|
||||||
|
|
||||||
if (start != null)
|
if (start != null)
|
||||||
{
|
{
|
||||||
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
LocalDate date = normaliseWeekDate(start).plusDays(6);
|
||||||
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
|
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
|
||||||
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
||||||
{
|
{
|
||||||
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
||||||
|
@ -181,8 +181,8 @@ public class AgirStatoolUtils
|
||||||
|
|
||||||
if (start != null)
|
if (start != null)
|
||||||
{
|
{
|
||||||
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
LocalDate date = normaliseWeekDate(start).plusDays(6);
|
||||||
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
|
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
|
||||||
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
||||||
{
|
{
|
||||||
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
||||||
|
@ -217,8 +217,8 @@ public class AgirStatoolUtils
|
||||||
|
|
||||||
if (start != null)
|
if (start != null)
|
||||||
{
|
{
|
||||||
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
LocalDate date = normaliseWeekDate(start).plusDays(6);
|
||||||
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
|
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
|
||||||
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
||||||
{
|
{
|
||||||
double stat = project.issues().extractActivedAt(date).computeMedian(date);
|
double stat = project.issues().extractActivedAt(date).computeMedian(date);
|
||||||
|
@ -253,8 +253,8 @@ public class AgirStatoolUtils
|
||||||
|
|
||||||
if (start != null)
|
if (start != null)
|
||||||
{
|
{
|
||||||
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
LocalDate date = normaliseWeekDate(start).plusDays(6);
|
||||||
LocalDate normalizedEnd = AgirStatoolUtils.normaliseWeekDate(end);
|
LocalDate normalizedEnd = normaliseWeekDate(end).plusDays(6);
|
||||||
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
||||||
{
|
{
|
||||||
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
Stat stat = project.issues().extractActivedAt(date).computeStat(date);
|
||||||
|
|
Loading…
Reference in a new issue