From bc972e8cf0959b597b9b1a95860453a77f874b2d Mon Sep 17 00:00:00 2001 From: foralost Date: Sat, 3 Feb 2024 19:14:25 +0100 Subject: [PATCH] Additional columns for habit headers --- .../java/org/isoron/uhabits/core/models/HabitList.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/models/HabitList.kt b/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/models/HabitList.kt index 26a89a3ae..210fafccd 100644 --- a/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/models/HabitList.kt +++ b/uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/models/HabitList.kt @@ -187,7 +187,9 @@ abstract class HabitList : Iterable { "NumRepetitions", "Interval", "Color", - "Unit" + "Unit", + "Target Type", + "Target Value" ) val csv = CSVWriter(out) csv.writeNext(header, false) @@ -201,7 +203,9 @@ abstract class HabitList : Iterable { numerator.toString(), denominator.toString(), habit.color.toCsvColor(), - habit.unit + habit.unit, + habit.targetType.name, + habit.targetValue.toString(), ) csv.writeNext(cols, false) }