Skip to content

Commit 60320c8

Browse files
committed
fix date selection on statistic
1 parent 9a579ca commit 60320c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/main/java/com/flowci/core/flow/controller/StatsController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323
import com.flowci.core.flow.service.FlowService;
2424
import com.flowci.core.flow.service.StatsService;
2525
import com.flowci.exception.ArgumentException;
26+
import org.springframework.beans.factory.annotation.Autowired;
27+
import org.springframework.web.bind.annotation.*;
28+
2629
import java.time.Instant;
2730
import java.time.temporal.ChronoUnit;
2831
import java.util.List;
29-
import org.springframework.beans.factory.annotation.Autowired;
30-
import org.springframework.web.bind.annotation.*;
3132

3233
/**
3334
* @author yang
@@ -36,7 +37,7 @@
3637
@RequestMapping("/flows")
3738
public class StatsController {
3839

39-
private static final int MaxDays = 30;
40+
private static final int MaxDays = 31;
4041

4142
@Autowired
4243
private FlowService flowService;

0 commit comments

Comments
 (0)