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
This commit is contained in:
benjamin melançon 2021-06-02 10:46:52 -04:00
parent a6009caf97
commit 5bd5ba3aeb

View file

@ -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 # 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. # 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['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 # Condense duplicate entries by date, summing the minutes spent, and listing
# the first started and last recorded times for each task. # the first started and last recorded times for each task.