|
|
@ -186,7 +186,10 @@ abstract class HabitList : Iterable<Habit> {
|
|
|
|
"Description",
|
|
|
|
"Description",
|
|
|
|
"NumRepetitions",
|
|
|
|
"NumRepetitions",
|
|
|
|
"Interval",
|
|
|
|
"Interval",
|
|
|
|
"Color"
|
|
|
|
"Color",
|
|
|
|
|
|
|
|
"Unit",
|
|
|
|
|
|
|
|
"Target Type",
|
|
|
|
|
|
|
|
"Target Value"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
val csv = CSVWriter(out)
|
|
|
|
val csv = CSVWriter(out)
|
|
|
|
csv.writeNext(header, false)
|
|
|
|
csv.writeNext(header, false)
|
|
|
@ -199,7 +202,10 @@ abstract class HabitList : Iterable<Habit> {
|
|
|
|
habit.description,
|
|
|
|
habit.description,
|
|
|
|
numerator.toString(),
|
|
|
|
numerator.toString(),
|
|
|
|
denominator.toString(),
|
|
|
|
denominator.toString(),
|
|
|
|
habit.color.toCsvColor()
|
|
|
|
habit.color.toCsvColor(),
|
|
|
|
|
|
|
|
habit.unit,
|
|
|
|
|
|
|
|
habit.targetType.name,
|
|
|
|
|
|
|
|
habit.targetValue.toString()
|
|
|
|
)
|
|
|
|
)
|
|
|
|
csv.writeNext(cols, false)
|
|
|
|
csv.writeNext(cols, false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|