diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 89807ab..5e79a3c 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -128,8 +128,8 @@ for preferred, alternatives in compound_project_tasks.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['project'].str.split(': ', 1).str[0], timelog['project'])) +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['project'].str.split(' — ', 1).str[0], timelog['project'])) # Replace irregular-but-known project names with ones timetracking tools use. harvest_project_names = {