Skip to content

Commit

Permalink
Adding additional columns to header
Browse files Browse the repository at this point in the history
  • Loading branch information
foralost committed Feb 18, 2024
1 parent ab86cee commit 5800a71
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ abstract class HabitList : Iterable<Habit> {
"Description",
"NumRepetitions",
"Interval",
"Color"
"Color",
"Unit",
"Target Type",
"Target Value"
)
val csv = CSVWriter(out)
csv.writeNext(header, false)
Expand All @@ -199,7 +202,10 @@ abstract class HabitList : Iterable<Habit> {
habit.description,
numerator.toString(),
denominator.toString(),
habit.color.toCsvColor()
habit.color.toCsvColor(),
habit.unit,
habit.targetType.name,
habit.targetValue.toString()
)
csv.writeNext(cols, false)
}
Expand Down

0 comments on commit 5800a71

Please sign in to comment.