working on time tracking index

This commit is contained in:
2025-08-18 01:30:36 +02:00
parent 8bb44d0d7f
commit ad3634e811
3 changed files with 28 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ public class Constants {
public static final String TABLE_SETTINGS = "settings";
public static final String TAGS = "tags";
public static final String TASK_IDS = "task_ids";
public static final String TAX = "tax";
public static final String TEMPLATE = "template";
public static final String TEXT = "text";

View File

@@ -107,6 +107,7 @@ public class Time implements Mappable{
map.put(END_TIME,end.toString().replace("T"," "));
map.put(STATE,Map.of(STATUS_CODE,state.code,NAME,state.name()));
map.put(DURATION,Duration.between(start,end).toMinutes()/60d);
map.put(TASK_IDS,taskIds);
return map;
}
}