Move column info production to column and do not get earlier cycles

This commit is contained in:
Julia Friesel
2018-10-10 18:17:12 +02:00
parent 33fa429f58
commit 8f6213e9ee
4 changed files with 134 additions and 137 deletions
+6 -1
View File
@@ -7,7 +7,12 @@ export default function () {
}
function updateCurrentCycle(dateString) {
cycle.status = getCycleStatusForDay(dateString)
// for the NFP lines, we don't care about potentially extending the
// preOvu phase, so we don't include all earlier cycles, as that is
// an expensive db operation at the moment
cycle.status = getCycleStatusForDay(
dateString, { excludeEarlierCycles: true }
)
if(!cycle.status) {
cycle.noMoreCycles = true
return