diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 9cd2357..1d10532 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -39,8 +39,9 @@ timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name() timelog['project'] = (np.where(timelog['description'].str.contains(': '), timelog['description'].str.split(': ', 1).str[0], None)) timelog['description'] = (np.where(timelog['description'].str.contains(': '), timelog['description'].str.split(': ', 1).str[1], timelog['description'])) -# Mid-work clean up of description. +# Mid-work clean up of description and new project. timelog['description'] = timelog['description'].str.strip() +timelog['project'] = timelog['project'].str.strip() # If a multiplier has been provided (an asterisk and an integer at the end of a # task), then multiply the time by it and remove it from the description.