From 5bd5ba3aeb12fb1611c61d00ab0b7c403b3e9e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Wed, 2 Jun 2021 10:46:52 -0400 Subject: [PATCH] Fix underlying logic error actually causing failure of projects and subprojects to roll up properly We were re-setting all of the projects to the task, doh, totally destroying that groupby --- pomodoro_to_harvest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 41baf3c..cfdd1e9 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -155,7 +155,7 @@ for preferred, alternatives in replacement_project_names.items(): # If a compound project was specified, break that out into a sub-project (in # Harvest, we use Task, which is really task type, for this. timelog['subproject'] = (np.where(timelog['project'].str.contains(': '), timelog['project'].str.split(': ', 1).str[1], None)) -timelog['project'] = (np.where(timelog['project'].str.contains(': '), timelog['description'].str.split(': ', 1).str[0], timelog['project'])) +timelog['project'] = (np.where(timelog['project'].str.contains(': '), timelog['project'].str.split(': ', 1).str[0], timelog['project'])) # Condense duplicate entries by date, summing the minutes spent, and listing # the first started and last recorded times for each task.