Comparing version 0.11.6 to 0.11.7
@@ -391,3 +391,5 @@ "use strict"; | ||
const isEndOfMonth = cal[eventMonthName].days.length == eventDayNumber; | ||
if (isEndOfMonth && isLastEvent) { | ||
const isLastEventInDay = "?"; | ||
if (isEndOfMonth || isLastEvent) { | ||
console.log({ isEndOfMonth, isLastEvent }); | ||
cal[eventMonthName].fullDate = | ||
@@ -397,2 +399,3 @@ `${firstEventDate.year}-${eventMonthNumber}`; | ||
cal[eventMonthName].duration / cal[eventMonthName].days.length; | ||
console.log({ hpd: cal[eventMonthName].hoursPerDay }); | ||
} | ||
@@ -399,0 +402,0 @@ }); |
@@ -204,5 +204,8 @@ "use strict"; | ||
let data = ""; | ||
let notifyMsg = ""; | ||
Object.entries(resp.data).forEach((month) => { | ||
const [monthName, monthData] = month; | ||
data += `\n${monthName}: ${utils_1.default.secToTimeStr(monthData.duration * 60 * 60)} | ${monthData.hoursPerDay.toFixed(2)} hours per day`; | ||
const monthTitle = `\n${monthName}: ${utils_1.default.secToTimeStr(monthData.duration * 60 * 60)} | ${monthData.hoursPerDay.toFixed(2)} hours per day`; | ||
data += monthTitle; | ||
notifyMsg += monthTitle; | ||
if (monthData.duration > 0) { | ||
@@ -215,3 +218,3 @@ monthData.days.forEach((day, index) => { | ||
socket.write(JSON.stringify({ err: false, data })); | ||
utils_1.default.notify("activities duration", data, "green"); | ||
utils_1.default.notify("activities duration", notifyMsg, "green"); | ||
}), | ||
@@ -218,0 +221,0 @@ // duration of all activities |
{ | ||
"name": "clockify", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"description": "A time tracker to make sure that you really spent the time you think you spent working, studying, etc.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
106735
1195